Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
GCK/Coin_flip function
GCK
Sep 17th, 2019
214
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
def
coin_flip
(
)
:
#heads =0 and tails =1
generated
=
random
.
randint
(
0
,
2
)
print
(
"heads or tails?"
)
if
generated
==
0
:
print
(
"heads"
)
elif
generated
==
1
:
print
(
"tails"
)
coin_flip
(
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Let The Money Flow
CSS | 1 hour ago | 0.37 KB
Untitled
CSS | 1 hour ago | 0.34 KB
MAGA250
10 hours ago | 1.48 KB
Nightlight - Imprisoning Pitch
19 hours ago | 0.54 KB
Ombric - Astral Projection
19 hours ago | 0.77 KB
Katherine/Nightlight - Reindeer
19 hours ago | 1.03 KB
Djinni - Swords
20 hours ago | 0.44 KB
Djinni - Limits
20 hours ago | 0.62 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!