Untitled

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


#for loops 
for i in range(3):
    print("Hello")
    

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

#if - Condition
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])

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