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
  New to Python - Not sure why this code isn't working - Any help appreciated TheGreatNinx 4 986 Jul-22-2023, 10:21 PM
Last Post: Pedroski55
  code not working when executed from flask app ThomasDC 1 922 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,038 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 1,103 Oct-13-2022, 08:09 PM
Last Post: deanhystad
  small code for sampel asn1ate borys 0 882 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 1,276 Apr-08-2022, 05:54 PM
Last Post: deanhystad
  My Code isn't working... End3r 4 1,957 Mar-21-2022, 10:12 AM
Last Post: End3r
  please looking for typo in my code (solution please) jamie_01 1 1,294 Jan-12-2022, 06:45 AM
Last Post: Gribouillis
  i need help with a small code Jacobthefirst 1 1,514 Sep-22-2021, 03:33 PM
Last Post: bowlofred
  Newbie - code solution explained Stjude1982 2 1,872 Sep-16-2021, 08:54 AM
Last Post: Stjude1982

Forum Jump:

User Panel Messages

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