Python Forum
if /else statement not executing correctly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
if /else statement not executing correctly
#2
line 8 and 14 indent is incorrect
change line 13 to:
if add_group_name.strip() == 'quit':
on second look:
remove lines 13 and 14 entirely
change line 11 to:
while add_group_name.strip() != 'quit':
and move lines 16 & 17 outside of while loop
Reply


Messages In This Thread
RE: if /else statement not executing correctly - by Larz60+ - Apr-15-2019, 08:58 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  If statement not working correctly? MrKnd94 2 857 Nov-16-2022, 02:49 AM
Last Post: deanhystad
  Why doesn't my loop work correctly? (problem with a break statement) steckinreinhart619 2 3,247 Jun-11-2019, 10:02 AM
Last Post: steckinreinhart619
  if-elif-else statement not executing laila1a 4 3,080 Jan-05-2019, 02:22 PM
Last Post: buran
  'else' statement not executing sparkz_alot 3 3,932 Jul-20-2017, 01:00 AM
Last Post: ichabod801
  print() statement not executing.. bmohanraj91 3 3,718 May-01-2017, 03:56 PM
Last Post: Ofnuts

Forum Jump:

User Panel Messages

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