Skip to content

Instantly share code, notes, and snippets.

View Sarthak-Sidhant's full-sized avatar
🎓
@ dpsbk

Sarthak Sidhant Sarthak-Sidhant

🎓
@ dpsbk
View GitHub Profile

Hi My name is Sarthak Sidhant

Web Developer And Amateur Programmer

I'm literally the Most Annoying Person on The Internet

  • 🌍  I'm based in Bokaro, Jharkhand, India
  • 🖥️  See my portfolio at sarthaksidhant.me
# Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/
# No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes.
#in this program, we will have a basic idea of how to code lists in python
#we will start off by creating a list of numbers
list1=[1,2,3,4,5,6,7,8,9,10]
#this list contains numbers from 1 to 10, all of these are integers, and we will print them out
print(list1)
#we will now understand how to access elements in a list
#positive indexing: we will print the first element of list1, the indexing (counting) starts from 0
@Sarthak-Sidhant
Sarthak-Sidhant / WhileLoop.py
Created February 5, 2023 05:33
Detailed Instruction And Usage Of While Loop By Sarthak Sidhant
# Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/
# No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes.
#Loops in python
#For Loop
#While Loop
#For Loop
#We Will Only Be Covering For Loop In This Tutorial
#For Loop is used to iterate over a sequence (list, tuple, string) or other iterable objects.
@Sarthak-Sidhant
Sarthak-Sidhant / ForLoop.py
Created February 5, 2023 05:19
Detailed Instruction And Different Usages Of The For Loop By Sarthak Sidhant
# Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/
# No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes.
#Loops in python
#For Loop
#While Loop
#For Loop
#We Will Only Be Covering For Loop In This Tutorial
#For Loop is used to iterate over a sequence (list, tuple, string) or other iterable objects.
@Sarthak-Sidhant
Sarthak-Sidhant / operators.py
Created February 4, 2023 14:38
Detailed Introduction to Python Operators - Sarthak Sidhant
# Edited by: @Sarthak-Sidhant (GitHub) and Copyrights Reserved By https://sarthaksidhant.me/ & https://decodificate.tech/
# No Parts Of This Text or Code Shall be Reproduced Without Permission, Unless Used For Educational Purposes.
#Operators in Python
#Operators are used to perform operations on variables and values.
#There are 4 types of Python Operators, they are: Arithmetic Operators, Comparison Operators, Assignment Operators, Logical Operators
#Arithmetic Operators
#Arithmetic operators are used with numeric values to perform common mathematical operations:
print("Arithmetic Operators")
print("Addition")