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?") |
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
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.") |
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
print ("Type any city.") | |
city = input() | |
if city < "Denver": | |
print ("This city comes before Denver alphabetically.") | |
else: | |
if city > "Denver": | |
print ("This city comes after Denver alphabetically.") | |
if city == "Denver": | |
print: ("You wrote Denver.") | |