Untitled

 avatar
unknown
plain_text
a year ago
479 B
3
Indexable
#variables
x= 2
y= 3 
print(x+y)


#for loop 
for i in range(3):
    print("Hello")
    
#while loops
t= 0 
while t<10:
    print("T is smaller to 10")
    t=t+1

#Conditions
x= 2

if x<5 :
    print("x is Smaller than 5")
else :
    print ("x is not smaller than 5")

#Lists
numbers = ['1','2','3','4']
print(numbers[3])

#print all list values 
for i in range (4):
    print(numbers[i])


#functions
def add(x,y):
    print(x+y)

add(4,3)
Editor is loading...
Leave a Comment