import random
while True:
dice_number = random.randint(1, 6)
print('You rolled ' + str(dice_number))
print("Do you wish to continue? [Y/n]" )
if input() == 'Y' or 'y':
pass
else:
break
I just wasted half an hour trying to figure this out, still don't know what I did wrong. Can anyone help me please