anyone tell me why my program will not run?

Pavel Volkov sailor at lists.xtsubasa.org
Sat Nov 21 11:57:37 EST 2015


On суббота, 21 ноября 2015 г. 6:30:02 MSK, Dylan Riley wrote:
> i am learning python and was tasked with making a program that 
> flips a coin 100 times and then tells you
> the number of heads and tails.
>

First, you have a syntax error:
if result = heads:
should be:
if result == heads:

Second, there's incorrent indentation, your while loop is almost empty (not 
syntax error though).



More information about the Python-list mailing list