#!/usr/bin/python n = 10; while n > 0: print(n) n = n-1; else: print("End of Loop ...")
#!/usr/bin/python l = [1, 2, 3, 4]; #list elements and id for i in l: print(i, id(i)) for i in l: i = i*10; #i is immutable print(i, id(i)) for index, ele in enumerate(l): l[index] = l[index]*10; print(index, l[index], id(l[index]), ele, id(ele))
#!/usr/bin/python for i in range(10): if i == 5: break; print(i)
#!/usr/bin/python for i in range(10): if i%2 == 0: continue; print(i)
#!/usr/bin/python for i in range(10): if i%2 == 0: pass; # do nothing else: print(i)