0
Augmented assignment (+=)
task = 1 while task <= 20: print(task) task =+ 2 print("task completed, good job agent") #small mistake of the augmentation can lead to an infinite loop as follows when you run the code ,try += then run it again for result
2 Answers
+ 1
Hi and welcome to Sololearn!
If you have an actual question, please ask it. Don't spam up the forum.
Read these, they'll help:
https://www.sololearn.com/discuss/3021159/?ref=app
https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app
https://sololearn.com/compiler-playground/W3uiji9X28C1/?ref=app
https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app
0
+= in place of =+ this should run the actual code ,sometimes the only difference between a poison and a medicine is dosage