Python Forum
???: if "{choice}" in self._command
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
???: if "{choice}" in self._command
#2
The string isn't an f-string, so the test is for whether the literal string "{choice}" is in self._command. Since it isn't an f-string, the value of the variable choice is irrelevant. Did you try running a complete program with that code and appropriate values?
Reply


Messages In This Thread
RE: ???: if "{choice}" in self._command - by ndc85430 - Aug-23-2020, 04:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  combobox_callback(choice choice part of openfile name (kind of dependency) janeik 9 1,571 Sep-10-2023, 10:27 PM
Last Post: janeik

Forum Jump:

User Panel Messages

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