Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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') 
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #clear #console #python
ADD COMMENT
Topic
Name
2+4 =