What you’re looking for is an else
statement.
I’d recommend you to do a basic python tutorial before starting to ask questions here.
dice = int(dice)
if dice in {4, 6, 12}:
print("..." + str(dice))
else:
print("error message")
13
solved Send the user an error message when they input anything apart from 4, 6 or 12