Skip to content

Instantly share code, notes, and snippets.

@boshlonavish
Created November 5, 2019 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boshlonavish/62abd43ab02e816577f53fc6ee74ec52 to your computer and use it in GitHub Desktop.
Save boshlonavish/62abd43ab02e816577f53fc6ee74ec52 to your computer and use it in GitHub Desktop.
it doesnt work
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