Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with basic python
#2
Line 11 will not do what you expect. Change to
if gender in ["M","m"]:
Likewise change line 34.
Also, if I understand your code correctly, you should de-indent the 19-32 block (and its parallel) so that block is outside the while True loop.
Reply


Messages In This Thread
Help with basic python - by AaronG123 - Nov-14-2019, 02:24 PM
RE: Help with basic python - by jefsummers - Nov-14-2019, 02:38 PM
RE: Help with basic python - by AaronG123 - Nov-14-2019, 02:43 PM
RE: Help with basic python - by jefsummers - Nov-14-2019, 02:52 PM
RE: Help with basic python - by AaronG123 - Nov-14-2019, 02:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic python Natters10 3 3,140 Nov-29-2020, 07:04 AM
Last Post: Love2code

Forum Jump:

User Panel Messages

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