0
Whats the problem with my code i try to learn loops but apperently i suck at it lol
https://sololearn.com/compiler-playground/c9UM2ni6e678/?ref=app
3 Antworten
+ 3
1. You forgot ")" closing parenthesis at the end of the print statement.
2. The addition assignment is written like "+=" not "=+"
Mirco Michel
+ 2
1 more issue, Replace inout with input.
0
Dont forget to update line 13 to complete the code and stop the execution time out. You need to make sure you have the += in the correct order
Reasoning:
writing += order: monat += 1
is the same as saying: monat = monat + 1
This makes sense because you are adding +1 to the monat amount each loop
writing =+ order : monat =+ 1
is the same as saying: monat = +1
Which is the way you wrote it originally, only says that monat IS +1, not that you are adding +1 to monat