import random as r
print(
"""
Welcome to the Custom Counter!
Type in your starting value and your
ending value. Then, enter the amount
by which to count.
""")
x = True
start = int(input("Starting number: "))
while x != False or start != "":
fin = int(input("Ending number: "))
amount = int(input("Count by: "))
if amount > 0 or amount < 0:
x = False
result = r.randrange(start, fin, amount)
print(result)
input("Hit enter to exit.")
I made the while loop in hopes to exit the program when you clicked enter. Unfortunately, this will not let me exit the while loop no matter what I do. I am a noob at python. What is wrong with my condition?
Thank you!