Untitled
unknown
plain_text
a year ago
453 B
18
Indexable
#Variables
x = 2
y = 3
print(y)
#Loops
#for loop
for i in range(3):
print(i)
#while loop
i=0
while i<=3:
print(i)
i=i+1
#Conditions
if x>2 :
print("x is bigger")
else:
print('x is not bigger')
#Lists
numbers = ['1','3','4','5']
for i in range(4):
print(numbers[i])
for i in numbers:
print(i)
#Function
def ad(s1,s2):
print(s1+s2)
ad(2,3)
Editor is loading...
Leave a Comment