Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iriw/heads_and_tails
random coin side generator
https://github.com/iriw/heads_and_tails
Last synced: about 2 months ago
JSON representation
random coin side generator
- Host: GitHub
- URL: https://github.com/iriw/heads_and_tails
- Owner: IriW
- Created: 2021-09-05T22:53:05.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-09-05T22:53:07.000Z (over 3 years ago)
- Last Synced: 2024-11-19T12:18:32.212Z (2 months ago)
- Language: Python
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Heads or Tails
# Instructions
You are going to write a virtual coin toss program. It will randomly tell the user "Heads" or "Tails".
**Important**, the first letter should be capitalised and spelt exactly like in the example e.g. Heads, not heads.
There are many ways of doing this. But to practice what we learnt in the last lesson, you should generate a random number, either 0 or 1. Then use that number to print out Heads or Tails.
e.g.
1 means Heads
0 means Tails# Example Output
```
Heads
```or
```
Tails
```# Solution
[https://repl.it/@appbrewery/day-4-1-solution](https://repl.it/@appbrewery/day-4-1-solution)