Untitled
unknown
plain_text
a year ago
456 B
20
Indexable
#variables x= 2 y= 3 print(x+y) #loops #for loop for i in range(3): print("Hello") #while loop i=0 while i<=3: print(i) i=i+1 #if condition x= 2 if x<5 : print("x is Smaller than 5") else : print ("x is not smaller than 5") #list numbers = ['1','2','3','4'] print(numbers[3]) 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