Created
April 23, 2019 16:40
-
-
Save urain39/27b44001f0c80b31815878e1fbe31230 to your computer and use it in GitHub Desktop.
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
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