In my code, the 'detentions' integer seems to be taking the value of the 'day' integer when calling new_week()
I have looked through the code and just cannot find what is causing it.
It is defined like:
def new_week(self, detentions, motivation):
print(colored(detentions, 'yellow'))
oldmotiv = motivation
for i in range(0, detentions):
motivation = motivation - 3
print(colored("Detentions: " + str(detentions), 'yellow'))
print(colored("Motivation: " + str(motivation), 'yellow'))
print(colored("End of week summary: ", 'green'))
lostmotiv = oldmotiv - motivation
print(colored("You lost " + str(lostmotiv) + " motivation!", 'green'))
detentions = 0
It is invoked like:
print("It's the weekend! What would you like to do?")
WorldSettings.new_week(detentions, day, motivation)
again = input("Continue? yes, no ")
again.lower()
day = 1