Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help on else condition
#6
(May-18-2021, 06:31 AM)perfringo Wrote: As we don't know what tirage() does and what does 'doesn't work' mean it's very hard to provide any assistance.

But one thing you could consider writing differently:

if response.lower() == 'oui':    # covers all possible letter combinations: 'OUI', 'Oui', 'oUi' etc.

thanks
Reply


Messages In This Thread
help on else condition - by jip31 - May-18-2021, 05:38 AM
RE: help on else condition - by deanhystad - May-18-2021, 06:07 AM
RE: help on else condition - by Yoriz - May-18-2021, 06:09 AM
RE: help on else condition - by jip31 - May-18-2021, 06:23 AM
RE: help on else condition - by perfringo - May-18-2021, 06:31 AM
RE: help on else condition - by jip31 - May-18-2021, 06:41 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  else condition not called when if condition is false Sandz1286 10 5,932 Jun-05-2020, 05:01 PM
Last Post: ebolisa
  [HELP] Nested conditional? double condition followed by another condition. penahuse 25 8,162 Jun-01-2020, 06:00 PM
Last Post: penahuse

Forum Jump:

User Panel Messages

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