This website works better with JavaScript.
Explore
Help
Register
Sign In
KenSchae
/
py-100-days
Watch
1
Star
0
Fork
You've already forked py-100-days
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13
Commits
1
Branch
0
Tags
307 KiB
Python
100%
Tree:
2d48eeb6dd
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from '2d48eeb6dd'
${ noResults }
py-100-days
/
04-lists
/
coin_toss.py
7 lines
102 B
Raw
Blame
History
import
random
side
=
random
.
randint
(
0
,
1
)
if
(
side
==
1
)
:
print
(
"
Heads
"
)
else
:
print
(
"
Tails
"
)
Reference in new issue
Copy Permalink