Answers for "syntax for clear screen in oytghon"

13

console clear python

import os
os.system('clear')
Posted by: Guest on April-13-2020
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

Python Answers by Framework

Browse Popular Code Answers by Language