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
Branch:
master
master
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'master'
${ noResults }
py-100-days
/
04-lists
/
coin_toss.py
7 lines
102 B
Raw
Permalink
Normal View
History
Unescape
Escape
day 04
12 months ago
import
random
side
=
random
.
randint
(
0
,
1
)
if
(
side
==
1
)
:
print
(
"
Heads
"
)
else
:
print
(
"
Tails
"
)