having trouble getting this function to work:
go_on = False
def keep_going():
further = input("input: ")
if further == "n":
go_on = True
else:
go_on = False
return go_on
while go_on == False:
keep_going()
The idea being, that if you put in 'n', the while loop gets interrupted, obviously
But even if the function returns True after the input is 'n', the name go_on
keeps switching to False.