Python Forum
Basic Coding Question: Exit Program Command?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic Coding Question: Exit Program Command?
#1
Could anyone provide feedback on the preferred way to terminate a program?

A Google search suggested that there are 3 basic ways to terminate a program.

The three basic methods from Google are:

1. quit()

2. sys.exit("some sort of typed message here")

3. exit()

Thanks for the help!
Reply


Messages In This Thread
Basic Coding Question: Exit Program Command? - by RockBlok - Nov-19-2023, 04:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Schedule exit a program at a specific time 4 am every day. chubbychub 3 280 May-17-2024, 03:45 PM
Last Post: chubbychub
  python difference between sys.exit and exit() mg24 1 1,928 Nov-12-2022, 01:37 PM
Last Post: deanhystad
  force a program to exit ? Armandito 3 2,641 May-12-2022, 04:03 PM
Last Post: Gribouillis
  [solved] Basic question on list matchiing paul18fr 7 1,961 May-02-2022, 01:03 PM
Last Post: DeaD_EyE
  Very basic calculator question BoudewijnFunke 4 2,010 Dec-10-2021, 10:39 AM
Last Post: BoudewijnFunke
  trying to understand a string literal in a basic server program CompleteNewb 4 2,185 Nov-14-2021, 05:33 AM
Last Post: deanhystad
  PLEASE HELP! Basic Python Program joeroffey 5 2,499 Apr-10-2021, 02:59 PM
Last Post: jefsummers
  basic question isinstance tames 5 2,908 Nov-23-2020, 07:20 AM
Last Post: tames
  ERROR: Command errored out with exit status 1 calesii 3 7,260 Oct-23-2020, 05:39 PM
Last Post: snippsat
  basic question about tuples and immutability sudonym3 6 3,005 Oct-18-2020, 05:11 PM
Last Post: sudonym3

Forum Jump:

User Panel Messages

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