Answers for "clear python command prompt"

10

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')
Posted by: Guest on March-07-2020
10

python interpreter clear screen

import os

# Windows
os.system('cls')

# Linux
os.system('clear')
Posted by: Guest on May-23-2020

Code answers related to "clear python command prompt"

Python Answers by Framework

Browse Popular Code Answers by Language