Created
November 5, 2019 15:53
-
-
Save boshlonavish/62abd43ab02e816577f53fc6ee74ec52 to your computer and use it in GitHub Desktop.
it doesnt work
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def script(): | |
print ("Type any city.") | |
city = input() | |
if city < "Denver": | |
print ("This city comes before Denver alphabetically.") | |
elif city > "Denver": | |
print ("This city comes after Denver alphabetically.") | |
elif city == "Denver": | |
print ("You wrote Denver.") | |
restart = raw_input("Would you like to restart?") | |
if restart == "yes" or restart == "y": | |
script() | |
if restart == "no" or restart == "n": | |
print ("Thanks for using my program.") | |
script() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment