Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with a Code (Newbie)
#2
input will return str, you need to convert it to int in order to compare with 1, 2, or 3
Or you need to compare user input with a str, i.e. '1', '2' or '3'
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

Reply


Messages In This Thread
Help with a Code (Newbie) - by GamingC3 - Aug-19-2018, 11:27 AM
RE: Help with a Code (Newbie) - by buran - Aug-19-2018, 11:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  newbie question - can't make code work tronic72 2 732 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Newbie - code solution explained Stjude1982 2 1,917 Sep-16-2021, 08:54 AM
Last Post: Stjude1982
  newbie need help update code Mariaa 3 2,144 Oct-02-2020, 08:12 AM
Last Post: ibreeden
  I am a newbie.Help me with this simple piece of code feynarun 3 2,871 Jan-08-2020, 12:40 PM
Last Post: perfringo
  complete newbie, trying to tweak some code notarobot 6 3,252 Nov-02-2019, 03:35 PM
Last Post: notarobot
  Newbie: Help with code related to Caesar Cipher jessiblah 2 3,436 May-15-2018, 04:28 PM
Last Post: nilamo
  Newbie here. What's wrong with my code? GalaxyCR 3 3,448 Sep-29-2017, 01:51 PM
Last Post: buran

Forum Jump:

User Panel Messages

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