clear screen python
Import os
os.system("clear") # Linux - OSX
os.system("cls") # Windows
clear screen python
Import os
os.system("clear") # Linux - OSX
os.system("cls") # Windows
python cls statement using os module
import os
os.system('cls') # on windows
how to clear console python
import os
os.system('cls' if os.name == 'nt' else 'clear')
how to clear a command line python
import os
def clearConsole():
command = 'clear'
if os.name in ('nt', 'dos'): # If Machine is running on Windows, use cls
command = 'cls'
os.system(command)
clearConsole()
how to clear the console python
def clear():
# for windows
if name == 'nt':
_ = system('cls')
# for mac and linux(here, os.name is 'posix')
else:
_ = system('clear')
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us