17th Nov 2019, 3:52 PM
Rudra Saini
2 odpowiedzi
+ 4
Because you are converting string to int the wrong way -> (int)i = int(i) + 1 should be done like this -> int(i) = int(i) + 1 There is no need to convert string to int multiple times, write your code like this -> i = int(input()) while i <=10: print("@") i += 1 print("Finished!")
17th Nov 2019, 4:27 PM
OR!ON 🛡️
OR!ON 🛡️ - avatar
+ 1
Thank you
17th Nov 2019, 4:40 PM
Rudra Saini