Ask coding questions

← Back to all posts
How do I remove an input?
mcconnorea

When you use (variable name here) = input()
it keeps where you typed the input and I don't want that, to explain here's a photo.

Voters
mcconnorea
Comments
hotnewtop
Coder100

you can clear the terminal with this easy function:

paste that at the top of your page.

usage:

RhinoRunner

Use os.system('clear'). This will clear all of the text in the terminal.

SixBeeps

So what you want is for the "hello" that you typed to go away once you've submitted it?

mcconnorea

@SixBeeps Exactly