Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use if with and function?
#2
input returns a string. You need to convert the value to an int, with the int function. Note that that function will throw an exception if the value can't be converted to a number (in base 19 by default).
Reply


Messages In This Thread
Use if with and function? - by ibutun - May-30-2020, 05:42 PM
RE: Use if with and function? - by ndc85430 - May-30-2020, 05:48 PM
RE: Use if with and function? - by ibutun - May-30-2020, 05:55 PM
RE: Use if with and function? - by menator01 - May-30-2020, 05:56 PM
RE: Use if with and function? - by ibutun - May-30-2020, 06:35 PM
RE: Use if with and function? - by pyzyx3qwerty - May-30-2020, 05:57 PM

Forum Jump:

User Panel Messages

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