I am a beginner, and I am putting together a Christmas game for a family member. In the beginning, the game asks the player for a particular input, let's say the number of wine bottles in the cellar.
Hence, I have written something like this:
correct_wine = 8
wine = int(input("How many wine bottles are there? "))
while correct_wine != wine:
print("Wrong answer. Please try again.")
wine = int(input("Number of bottles: "))
At the very end, the game asks the player for the same input.
new_wine = int(input("Just to make sure, how many wine bottles were there? "))
while correct_wine != new_wine:
print("Perhaps you should go and count them again.")
new_wine = int(input("Number of bottles: "))
Obviously, I hope that the player has forgotten the number of bottles by the end of the game and has to count them again. However, while the first input remains visible on the screen, it won't be difficult for the player to copy it, thus destroying the point of asking the question again. Is there a way to make the first input disappear?