Get True when getting any input (Python)

  boolean, input, python

I’m new to programming. I searched for an answer but didn’t seem to find one. Maybe I just can’t Google properly.

I want to get something True, when the user inputs anything. Example:

another_number = input("Want to enter another number? ")

What I want:

if another_number = True
   float(input("Enter another number: "))

Sure I can say if another_number = ("Yes", "yes", "Y", "y") but in my program I want to get True when entering really anything.

Source: Python Questions

LEAVE A COMMENT