How to make a players answer temporarily invinsible

This is my assignment:
Make a rock-scissors-bag game for two players, where the first player gets to input their choice first, then the screen clears and the second player gets to input their answer. After this, it must be printed what the two different players chose and who won, or if it was a tie.

Sounds like this is for a school assignment(?)
We can’t help with schoolwork (check out the Community Guidelines).

Best advice: draw out the problem, try out some code, research it, write more code.