I am trying to design a game in Python. Where it will take inputs from five users.But i do not want the user's to know each others inputs. So i would like to erase the screen after taking a input from the user and then ask the next user.Is there any way to accomplish this?
I tried taking in inputs but the terminal shows the previous line revealing the input given by the previous user. Is there any way to hide it
User1=int(input("enter your number Player1"))
User2=int(input("enter your number Player2"))
User3=int(input("enter your number Player3"))
User4=int(input("enter your number Player4"))
User5=int(input("enter your number Player5"))
It is displaying the input taken by the previous User. I need a way to hide it.
I have tried using import os
and using os.system('cls')
but that did not work.(I was Using google colab)
import os
User1=int(input("enter your number Player1 "))
os.system('cls')
User2=int(input("enter your number Player2 "))
os.system('cls')
User3=int(input("enter your number Player3 "))
os.system('cls')
User4=int(input("enter your number Player4 "))
os.system('cls')
User5=int(input("enter your number Player5 "))