Python character arithmetic calculation

Asked 2 years ago, Updated 2 years ago, 30 views

I'm a beginner at Python, so when you say text = 0, shouldn't text + 500 be text = 500? It keeps saying text = 0, so I can't mark the score.

python

2022-09-22 16:50

1 Answers

character = 0
Text = text + 500 

Together, 500 is stored in the character.

character + 500

It is correct that the variable 'character' is added by 500, but the variable 'character' does not change because it has not been substituted.


2022-09-22 16:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.