Python Forum
Random module, coin flipping
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Random module, coin flipping
#2
This is not really a problem with your code. Your code works, it just doesn't seem to satisfy the requirements of the exercise. Without seeing the exercise as written by the professor, I can't really tell you what to do.

I would suggest trying to make the program work with only one loop. Generate the random number and print heads or tails all in the same loop.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Random module, coin flipping - by gus17 - Jan-05-2020, 06:58 PM
RE: Random module, coin flipping - by ichabod801 - Jan-05-2020, 07:55 PM
RE: Random module, coin flipping - by sandeep_ganga - Jan-06-2020, 07:26 AM
RE: Random module, coin flipping - by perfringo - Jan-06-2020, 10:29 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Print the frequency of each coin for the combinations that sum to the amount N Pranav 3 2,603 May-19-2020, 06:16 AM
Last Post: Pranav
  Need help with coin change program Gateux 2 6,112 Jun-25-2019, 02:32 PM
Last Post: perfringo
  Adding and Removing coins to match Coin Bag Total infinite times Strayfe 8 4,694 Sep-11-2018, 07:30 PM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020