Python Forum

Full Version: I can't understand how to
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This is my code:
name = input("What is your name? ")
print( "Hello " + name )
Age = input("What is your age? ")
 if Age = < 60:
    print( "You're old")
 else:
    print( "You're young")
And i have a question :how to make that the code runs separate?
(Mar-14-2021, 05:20 PM)Dayago Wrote: [ -> ]how to make that the code runs separate?
What do you mean by that?

Note that input() will return str and you need to convert it to int before being able to compare it with 60.