Python Forum
???: if "{choice}" in self._command
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
???: if "{choice}" in self._command
#3
BaiYouLihg4 Wrote:What does this do?
It tests if self._command contains the literal string "{choice}". If the author intended a replacement of "{choice}" by "0", he should have used f"{choice}" (for python version >= 3.6)
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  combobox_callback(choice choice part of openfile name (kind of dependency) janeik 9 1,608 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