I have a problem with basic simple python. So I am making a memory game and I want to display the objects and after a delay of 5 seconds, make the text disappear.
import time
print("Welcome to the memory game.")
print("Choose difficulty level :")
print("1. Easy")
print("2. Medium")
print("3. Hard")
print("4. Very Hard")
x = input("press '1' for easy, '2' for medium, '3' for hard and '4' for very hard : ")
if x == '1' :
print("You chose level 1, easy.")
print("I will give you 3 objects and you have to type then in the correct order to gain points.")
print("Not cAsE SeNSitIvE")
obj = print("Ship, Money, Python")
time.sleep(5)
ez = input().upper
if ez == 'Ship, Money, Python' or ez == 'ship,money,python' or ez == 'Ship,Money,Python' or ez == 'ship, money, python' :
print("Correct")
else :
print("Wrong")
print("The answer was : Ship, Money, Python")
this is a part of the code. Pls help me out here I want to hide the text
obj = print("Ship, Money, Python")
after a delay of 5 seconds.