DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python flip a coin
import
random result
=
random
.
choice
(
[
"Heads"
,
"Tails"
]
)
PREVIOUS
NEXT
Tagged:
#python
#flip
#coin
ADD COMMENT
Topic
COMMENT
Name
2+2 =
Submit