I am a beginner in Python and having a problem with an infinite loop in my program. It produces my print statements correctly but continues infinitely. My else statement at the end also does not work for some reason.
day = "Lets see how many classes you will have today."
day += "\nInput 'Finished' when you are done. What day is today? "
day = input(day)
active = True
while True:
if day == 'Finished':
active = False
elif day == 'Wednesday':
print("You should have just 1 class today!")
elif day == 'Thursday':
print("You should have 4 classes today!")
elif day == 'Friday':
print("You should have 2 classes today! ")
elif day == 'Saturday':
print("You should have 4 classes today! ")
elif day == 'Sunday':
print("You should have 4 classes today!")
elif day =='Monday' or 'Tuesday':
print("You don't have any classes today. Sit back and relax!")
else:
print("That is not a valid day dumbass!")
while active:and want to bringday = input(day)inside loop.elifin your code should beelif day == 'Monday' or day == 'Tuesday'