You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The question asks to write a take_damage script and the hp cannot go below 0.
The solution line is: health -= amount
typing health =-amount is obviously incorrect, but this is a common mistake for beginners and isn't clearly caught by the app.
Furthermore, the difference between "health -= amount" and "health =-amount" is not made clear in the previous section where this concept is introduced.
I suggest either this difference is added to the chapter OR that what would be even better is have it be part of the error debug helper you have made.
Thank you for reading and this course/app
The text was updated successfully, but these errors were encountered:
The question asks to write a take_damage script and the hp cannot go below 0.
The solution line is: health -= amount
typing health =-amount is obviously incorrect, but this is a common mistake for beginners and isn't clearly caught by the app.
Furthermore, the difference between "health -= amount" and "health =-amount" is not made clear in the previous section where this concept is introduced.
I suggest either this difference is added to the chapter OR that what would be even better is have it be part of the error debug helper you have made.
Thank you for reading and this course/app
The text was updated successfully, but these errors were encountered: