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 Aug 9, 2018
Working with python-crontab
View manage.py
import sys
print(f'What\'s up! {datetime.datetime.utcnow()}')
sys.exit()
@LarryWachira
LarryWachira / gist:130fd9ba8f07e66238043be7c331d2b3
Created Jan 18, 2017
creating a command line application that uses a public API that reports data on the number of people in space
View gist:130fd9ba8f07e66238043be7c331d2b3
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.