Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Python Ex5

# Program in Python
    
print "Hello Welcome to Python!\n"
print ("Welcome User.\n")
miles = input("How far would you like to travel in miles?\n")
if miles <= 3:
    print ("Please go by walk.")
elif miles > 3 and miles < 300:
    print ("please drive to the destination.")
elif miles >= 300:
    print ("I suggest flying to your destination.")

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.