Dec-20-2020, 05:59 AM
The problem with your code is that
As a side note,
input
will return str
, while randint
will yield int
. You are comparing e.g. '1'
with 1
. Just convert the value returned from input()
into int
.As a side note,
input()
takes an argument - the prompt to display. So, instead of 2 lines you can have call = input("Heads[1] or Tails[2]? ")
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs