X Tutup
Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Coin Flip

This is a Python program used to simulate a coin toss, in which a user is asked to pick a side (heads or tails), and the program selects a result at random between the two options. If the user's choice matches the result, they win the coin toss.

How to Play

  1. When the program is initiated, you will be prompted to choose either "heads" or "tails".
  2. The program will then determine the winning result by random chance, and display it.
  3. If your choice matches the result, you win the coin toss. If not, you'll receive a "OOF" message to indicate a loss.
  4. After the end of each round, you will be asked if you want to play again. Type "yes" to continue playing or "no" to exit the program.

Enjoy!

X Tutup