Your 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 count generate a coin flip, head or tail. If the coin is head, increase numheads, else increase numtails by one. Loop ends here. Print out numheads and numtails.