Python Forum
python3 does not understand: exit(0)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python3 does not understand: exit(0)
#10
I agree with Nilamo. The whole if/else at the end of the program can be removed. If rep == 'n', then the loop will end, and the program will end. There is no need to force it with sys.exit.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
python3 does not understand: exit(0) - by sylas - Apr-13-2017, 05:58 AM
RE: python3 does not understand: exit(0) - by sylas - Apr-13-2017, 06:22 AM
RE: python3 does not understand: exit(0) - by wavic - Apr-13-2017, 06:40 AM
RE: python3 does not understand: exit(0) - by sylas - Apr-13-2017, 06:57 AM
RE: python3 does not understand: exit(0) - by wavic - Apr-13-2017, 07:02 AM
RE: python3 does not understand: exit(0) - by sylas - Apr-13-2017, 07:12 AM
RE: python3 does not understand: exit(0) - by wavic - Apr-13-2017, 07:13 AM
RE: python3 does not understand: exit(0) - by ichabod801 - Aug-09-2017, 10:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  python difference between sys.exit and exit() mg24 1 1,872 Nov-12-2022, 01:37 PM
Last Post: deanhystad
  How to understand the byte notation in python3 blackknite 3 2,950 Feb-23-2021, 04:45 PM
Last Post: bowlofred
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 4,957 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE

Forum Jump:

User Panel Messages

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