Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if var is "string"
#2
You need to change all the 'is' to ==
if size == "small"
is checks object identity
== checks for equality
Reply


Messages In This Thread
if var is "string" - by speedskis777 - Mar-24-2019, 01:53 PM
RE: if var is "string" - by Yoriz - Mar-24-2019, 02:06 PM

Forum Jump:

User Panel Messages

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