
here is partway work: import time # puzzle pieces puzzle pieces! pieces = [ repr("elzzup eht devlos uoy"), "lambda str: str[::-1]", ] solution = [] while True: print("These are the available puzzle pieces:") print("") for number, piece in enumerate(pieces): print(f'{number}. {piece}') print("") print("Select which piece to try as the solution of the puzzle,") print(" or hit enter for the computer to try one for you:") selection = input("> ") #if selection != "1": # print() # print(' Computer is spending time identifying a piece to try as puzzle solution ....') # time.sleep(1) # print() # print(' The computer randomly selected a piece among all the options.') print() print(" !!!!! =D =D =D !!!!!! YOU SOLVED THE PUZZLE !!!!! =D =D =D !!!!") print() time.sleep(2)