Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
creating a command line application that uses a public API that reports data on the number of people in space
if answer == 'Y' or answer == 'y':
print("Well, what are you waiting for? Guess how many humans are in space right now:\n> ")
answer = input()
if answer == info["number"]:
print("Of course. Google, right? \n\n:( ")
else:
print("Wrong! There are {} people in space right now.".format(info["number"]))
print("\n That'll be one billion dollars. I'll take cash.")
elif answer == 'N' or answer == 'n':
print("You must be a lot of fun at parties. \n\n:(")
else: print("Seriously?")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.