i = 0; while i != 10: print(i+1) i = i + 1 # there's no increment in Python # for loop only works on collection, however you can use range() to implent numeric c-like loop for j in range(10): print(j+1)