Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exit script? #9

Open
11sm11 opened this issue Feb 14, 2018 · 2 comments
Open

Exit script? #9

11sm11 opened this issue Feb 14, 2018 · 2 comments

Comments

@11sm11
Copy link

11sm11 commented Feb 14, 2018

I thought it may be important to end the script. Here is my way. Is this a good way?

> import sys

> elif 'exit program' in command:
>         talkToMe('Goodbye, I am shutting down.')
>         sys.exit()
@Atulkmr
Copy link
Collaborator

Atulkmr commented Jan 6, 2019

Sorry for the soooo late reply, yes looks okay, or you could simply hit Ctrl + C.

@Atulkmr
Copy link
Collaborator

Atulkmr commented Jan 6, 2019

@11sm11 This was just for experimenting you know, don't need to write production quality code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants