Last active
October 28, 2019 10:50
-
-
Save LarryWachira/130fd9ba8f07e66238043be7c331d2b3 to your computer and use it in GitHub Desktop.
A `command line application` that uses a public API that reports data on the number of people in space. One of my first lines of Python.
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
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