User updated variables?
I’m looking for advice. My goal is to have the (imaginary) user create the value of the variable. Then the loop will continue looping by that value until it hits the break condition. total = 0 tickets = int(input()) passengers = tickets while (True): age = int(input()) if age > 3: total += 100 passengers -= 1 else: passengers -= 1 if passengers == 0: break print(total)