Python Python Basics Types and Branching String Methods

'clear' command doesn't work in REPL?

Following along with the lesson in the Console box, which is getting crowded, tried to use 'clear' and got a NameError: name 'clear' is not defined Why is this? and is there another way to clear the REPL aside from closing and reopening?

2 Answers

Pedro Cabral
Pedro Cabral
24,404 Points

Have you tried?

import os;os.system("clear")
Jesse Antonio
Jesse Antonio
152 Points

You can do 'Control L' to clear REBL