I'm literally the Most Annoying Person on The Internet
- 🌍 I'm based in Bokaro, Jharkhand, India
- 🖥️ See my portfolio at sarthaksidhant.me
I'm literally the Most Annoying Person on The Internet
# 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 |
# 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. |
# 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. |
# 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") |