Nov-19-2019, 07:52 PM
if (guess == "secretNumber"):First, no need to put brackets around comparison, but that´s not the problem.
What are you comparing there?
Definitely not that what you want!
You are comparing an integer value with a string !
What was my mistake in this Python code (easy)?
|
|
Messages In This Thread |
What was my mistake in this Python code (easy)? - by voltman - Nov-19-2019, 07:22 PM
RE: What was my mistake in this Python code (easy)? - by ThomasL - Nov-19-2019, 07:52 PM
RE: What was my mistake in this Python code (easy)? - by ichabod801 - Nov-19-2019, 09:21 PM
RE: What was my mistake in this Python code (easy)? - by jefsummers - Nov-19-2019, 09:44 PM
RE: What was my mistake in this Python code (easy)? - by snippsat - Nov-19-2019, 09:58 PM
|