Skip to content

Instantly share code, notes, and snippets.

@urain39
Created April 23, 2019 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save urain39/27b44001f0c80b31815878e1fbe31230 to your computer and use it in GitHub Desktop.
Save urain39/27b44001f0c80b31815878e1fbe31230 to your computer and use it in GitHub Desktop.
from sys import stdin
from random import randrange
def yes_or_no(n, cnt):
return randrange(0, cnt) < n
def fire():
return yes_or_no(1, 6)
def main():
while stdin.readline():
if fire():
print("you dead.")
else:
print("lucky boy!")
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment