Why is my print code not replacing required numbers in python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is my print code not replacing required numbers in python ?

Here is the code x= 6 while x<=100: print(x) x+=1 if x==65: print("yay") continue if x==66: print("whoah") continue if x==79: print("Done") break

31st Mar 2020, 7:52 AM
Ahsen Mirza
Ahsen Mirza - avatar
2 Answers
+ 4
leave the break
31st Mar 2020, 8:08 AM
Oma Falk
Oma Falk - avatar
0
What you mean by replacing number ? Kindly explain your question.
31st Mar 2020, 8:00 AM
Muhammad Bilal
Muhammad Bilal - avatar