You are on page 1of 2

1.

i=1
while True:
if i%2 == 0:
break
print(i)
i += 2
2.
i=2
while True:
if i%3 == 0:
continue
print(i)
i += 2
3.
true = False
while True:
print(true)
break
4.
if (9 < 0) and (0 < -9):
print("hello")
elif (9 > 0) or False:
print("good")
else:
print("bad")
5. print(name)
for i in range(-1,-7,-3): if name[0]=='t':
for j in range(1,3): break
print(i,j) else:
6. print("finished")
x='one' print("got it...")
y='two' 8.
counter=0 x,y,z=True,False,False
while counter<len(x): if not(x or y or z):
print(x[counter],y[counter]) print("yes")
counter+=1 else:
7. print("no")
for name 9.
in["jay","ram","tom","sur","sam"]: Mention the Rules for identifiers?

You might also like