+ 1

I wanna correct 🥲pleas tell me what is wrong

i=1 While true if i%3 == 0: Break print (i) i +=1

6th Apr 2023, 6:41 AM
Md Talib
5 Antworten
+ 5
Colon and spelling mistakes
6th Apr 2023, 7:56 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar
+ 3
i=1 while True: #debug if i%3 == 0: break #debug print (i) i +=1
6th Apr 2023, 6:56 AM
Solo
Solo - avatar
+ 3
indentation, colon, keyword first letter.. while, True, break
6th Apr 2023, 7:06 AM
Kaminorsabir Kamin
Kaminorsabir Kamin - avatar
0
The syntax error in your code is caused by the lack of indentation after the `while` statement. i = 1 while True: if i % 3 == 0: break print(i) i += 1
8th Apr 2023, 1:29 AM
Raja Irfan Ahmed
Raja Irfan Ahmed - avatar