Am starting learning python, when i want erase all the result in shell, I need to close the shell, can I do this with some command or control keyboard?
            Asked
            
        
        
            Active
            
        
            Viewed 237 times
        
    0
            
            
        - 
                    If you are referring to the interactive shell in a terminal session you can do `Ctrl+d` – dejanualex Aug 24 '20 at 23:00
2 Answers
0
            
            
        You can use os.system('clear') to talk to the operating system, and ask the system to run the clear command. Of course you have to add import os at the beginning.
 
    
    
        xszym
        
- 928
- 1
- 5
- 11
 
     
     
    