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).
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to