Python Forum
What was my mistake in this Python code (easy)?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What was my mistake in this Python code (easy)?
#2
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 !
Reply


Messages In This Thread
RE: What was my mistake in this Python code (easy)? - by ThomasL - Nov-19-2019, 07:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Code problem - probably easy fix? colin_dent 5 979 Jun-30-2023, 01:55 PM
Last Post: deanhystad
  [Solved] Please, help me find a simple mistake AlekseyPython 2 1,798 Jun-17-2021, 12:20 PM
Last Post: AlekseyPython
  [split] Could you please clarify where i did mistake also how run without admin right Abubakkar 1 1,819 Jun-14-2021, 09:32 AM
Last Post: Larz60+
  creating simplex tableau pivot program easy or difficult for a beginner in Python? alex_0 2 2,638 Mar-31-2021, 03:39 AM
Last Post: Larz60+
  Problem with very easy code. janekk9002 1 1,853 Dec-10-2020, 12:57 PM
Last Post: buran
  Please help to me to find my mistake in code leonardin 2 1,899 Nov-29-2020, 04:17 PM
Last Post: Larz60+
  minor mistake in code for factorial spalisetty06 2 1,938 Aug-22-2020, 05:00 PM
Last Post: spalisetty06
  Simple mistake about for Nomatter 4 2,348 Jul-16-2020, 02:24 PM
Last Post: Nomatter
  Install Mistake jlerette5 1 1,939 Feb-18-2020, 12:19 AM
Last Post: jefsummers
  countdown script not working..plz help what is mistake randyjack 1 2,152 Oct-28-2019, 06:57 AM
Last Post: perfringo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020