I'm having trouble with clearing text in python 3.8. I've looked at similar answers but they didn't help me with the problem I'm having since the solutions those answers offered did not work for me. here's the line of code:
def userInstructions(userInput):
if userInput == "help" or userInput == "Help":
help()
elif userInput == "list" or userInput == "List":
words()
elif userInput == "tutorial" or userInput == "Tutorial":
tutorial()
elif userInput == "salve":
LatinRef.salve()
return input('\nEnter your responce: ')
os.system('clear')
What I want this to do is every time the user inputs a response that response would be cleared and it would be blank instead of appearing like this:
Type in your command or any Latin word to review or learn.
Enter your responce: hello
Type in your command or any Latin word to review or learn.
Enter your response: help
how can I fix this? I'm currently using python 3.8 if that helps.