I want to ask the user if they want to play again and if they do, the code should repeat. I'm not sure how though. This is my code:
import random
import time
seconds = input ("How many seconds?")
seconds = int(seconds)
a_list = input('What items do you want? haikyu/mha/demon slayer')
if a_list == 'haikyu':
items = ['hinata' 'kageyama', 'tsukishima', 'bokuto', 'kuroo', 'akaashi']
if a_list == 'mha':
items = ['denki', 'bakugo', 'kirishima', 'deku', 'todoroki', 'tsu']
if a_list == 'demon slayer':
items = ['tanjiro', 'nezuko', 'inosuke', 'zenitsu', 'tomioka']
random.shuffle(items)
for item in items:
print (item)
time.sleep(seconds)
random.shuffle(items)
removed_item = items.pop()
for item in items:
print(item)
guess = ''
while guess != removed_item:
guess = input('what is the missing item?')