Created
November 26, 2019 14:01
-
-
Save sudosanet/dd6285fac1e02003c20292feb4264c1c 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
import random | |
def lottery(): | |
r = random.random() | |
if(r<=0.3): | |
return "You win." | |
else: | |
return "You lose." | |
def slot(n): | |
random1 = random.randint(0,n) | |
random2 = random.randint(0,n) | |
random3 = random.randint(0,n) | |
tupleone = (random1,random2,random3) | |
return tupleone |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment