Python Forum
Quick Help - Timers - Need Small Solution for Working Code
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick Help - Timers - Need Small Solution for Working Code
#6
(Nov-16-2020, 06:36 PM)jefsummers Wrote: input returns a string. Your if statement compares that string to a number. Put quotes around the number or use int() to convert your input string to an integer.

Hey thanks for the reply. I had thought for a good while earlier that this could be the issue, STRINGS vs. INTEGERS that is. I actually had tried swapping out the '==' for '=' in my script but that didn't work. This did, thanks!!!
Reply


Messages In This Thread
RE: Quick Help - Timers - Need Small Solution for Working Code - by EwH006 - Nov-17-2020, 04:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  code isnt working. nezercat33 1 589 Mar-14-2025, 03:45 AM
Last Post: deanhystad
  Simple code not working properly tmv 2 476 Feb-28-2025, 09:27 PM
Last Post: deanhystad
  I'm new to Python - can someone help with this code as it is not working? lminc123 1 487 Feb-13-2025, 06:13 PM
Last Post: lminc123
  my code is not working erTurko 1 631 Nov-11-2024, 08:43 AM
Last Post: buran
  New to Python - Not sure why this code isn't working - Any help appreciated TheGreatNinx 4 2,283 Jul-22-2023, 10:21 PM
Last Post: Pedroski55
  code not working when executed from flask app ThomasDC 1 3,059 Jul-18-2023, 07:16 AM
Last Post: ThomasDC
  I am new to python and Could someone please explain how this below code is working? kartheekdas 2 1,759 Dec-19-2022, 05:24 PM
Last Post: kartheekdas
Exclamation My code is not working as I expected and I don't know why! Marinho 4 2,161 Oct-13-2022, 08:09 PM
Last Post: deanhystad
  small code for sampel asn1ate borys 0 1,417 Jul-26-2022, 10:48 AM
Last Post: borys
  Can someone explain this small snippet of code like I am a 5 year old? PythonNPC 3 2,026 Apr-08-2022, 05:54 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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