Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)