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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!