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

1st Mar 2025, 3:02 PM
NOOBY-PRO
NOOBY-PRO - avatar
2 Answers
1st Mar 2025, 3:17 PM
Ausgrindtube
Ausgrindtube - avatar
0
+= in place of =+ this should run the actual code ,sometimes the only difference between a poison and a medicine is dosage
1st Mar 2025, 3:05 PM
NOOBY-PRO
NOOBY-PRO - avatar