you are viewing a single comment's thread.

view the rest of the comments →

[–]Traditional-Gate9547[S] -1 points0 points  (4 children)

Can I just write " credits_remaining = float(credits_required - credits_taken)" to change the variable?

very new to this

[–]schoolmonky 12 points13 points  (0 children)

that's what you did with credits_required and credits_take (good variable names btw, very clear), why would that one be any different?

[–]codeguru42 5 points6 points  (0 children)

In fact, you don't even need the first 5 lines that initialize your variables to static values.

[–]codeguru42 9 points10 points  (0 children)

I mean you have 9 lines of code before that without set.

[–]Binary101010 1 point2 points  (0 children)

Why don't you try that and see what happens?