Untitled

mail@pastecode.io avatar
unknown
plain_text
14 days ago
568 B
19
Indexable
Never
#Printing Variables 
number = 0 
number = 12
print(number)


#Calcuating The Area of rectangle 

#الطول 
length = 10
# العرض
width = 20
print(length*width)

#ADD 2 numbers 
def sum(num1,num2):
    print(num1+num2)
sum(9,10)

#for loop
i=0 
for i in range(5):
    print('Hello')

#for loop
for i in range (2,-5,-1):
 print(i)
# 2+1 3 

#while loop
while True:
    print ('Hello python')


#while loop explain

t=0
#t=0 t<3 P 
#t=1 t<3 P
#t=2 t<3 P
while t<3:
    print (t)
    t=t+1
    #t=2+

##Homework
create a for loop that prints numbers from 11 to 20


Leave a Comment