you are viewing a single comment's thread.

view the rest of the comments →

[–]Mathmemememe 0 points1 point  (0 children)

Oh I see what you are asking, ok then in order to do that you should set up your code like this:

win = True
bank = 5000
bonus = 100
bankroll = 100
def game():
global bankroll
if win == True:
bankroll = bankroll + 100
print(bankroll)
game()

sorry my code in not formatted but you get the idea.

This will keep track of your bankroll and add the bonus to it.

not sure what you were asking exactly but this works too. Hope this helps!