def f(): a = 1 while a < 10: do_smth a+=1 print(a)