#For Loop Example - 1:
my_Money5 = ["Dollar","Rupee","Ruble"]
for Money in my_Money5:
print (Money, "Currency")
#For Loop Example - 2:
for i in range(1000):
print ("i= ", i)
if (i == 999):
break
#While Loop:
count = 0
while count < 10:
print("Count is less than ten.", count)
count+=1
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.