Question: In Python 3.7 Write a program that simulates coin tossing. For each toss of the coin the program should show Heads or Tails . Let
In Python 3.7
Write a program that simulates coin tossing. For each toss of the coin the program should show Heads or Tails. Let the program toss the coin 100 times, and count the number of times each side of the coin appears. Show the results (e.g., Heads: 48, Tails: 52). The program should create and call a function named flip that takes no argument and returns 0 for tails and 1 for heads.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
