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

Recommendation #1

Open
cyberpanda opened this issue Aug 17, 2020 · 1 comment
Open

Recommendation #1

cyberpanda opened this issue Aug 17, 2020 · 1 comment

Comments

@cyberpanda
Copy link

You could use something like:

os.system("clear" if os.name != "NT" else "cls")

instead of:

os.system("clear")
os.system("cls")

I like the ASCII-GUI you made 👍

@ThePythonDev
Copy link

I agree, although I would take an approach such as:

def clear():
       if os.name == "NT"
               os.system("cls")
       else:
               os.system("clear")

clear()

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