-2

if money == (1, 799999): print("You're a natural!)

I need to make it so, if the money variable is = to anything in between 1 and 799999 it can return a print. But i cant find anything to do it

Arth
  • 1
  • 2
  • `if 1 <= money <= 799999: print('You're a natural')` Do you need only integers? – Corralien Jan 11 '23 at 13:57
  • Yes! thank you, but how did it not pop up on the list of "maybe this will answer your question." when i posted this. – Arth Jan 11 '23 at 13:58

1 Answers1

0

You can use the following code:

if money>=1 and money<=799999:
    print("You are natural.")

Hope it works.....

JonSG
  • 10,542
  • 2
  • 25
  • 36