write a program that stimulates flipping a coin 100 times and then displays the total number of heads and total number of tails achieved
marethamogale 0 Newbie Poster
Recommended Answers
Jump to PostGive us the code you have written so far and the problems you had.
Jump to PostYour code has hardly anything to do with the task you mentioned in the first post.
Try to program the following procedure in python.
Let's make two variable that will store the number of tails and heads.
Let they be: numtails=0, numheads=0
Loop begins here. Count 100 times.
For each …
All 5 Replies
Gribouillis 1,391 Programming Explorer Team Colleague
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
marethamogale 0 Newbie Poster
slate 241 Posting Whiz in Training
phorce 131 Posting Whiz in Training Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.