Skip to content

Instantly share code, notes, and snippets.

Lawrence Wachira LarryWachira

  • Nairobi, Kenya
Block or report user

Report or block LarryWachira

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@LarryWachira
LarryWachira / manage.py
Last active Oct 28, 2019
Working with python-crontab
View manage.py
import sys
print(f'What\'s up! {datetime.datetime.utcnow()}')
sys.exit()
@LarryWachira
LarryWachira / aliens.py
Last active Oct 28, 2019
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.
View aliens.py
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.")
You can’t perform that action at this time.