After running this code , if i put anything either "yes" or "no", its response appears in console, is possible to simply just delete that and just appears "Wrong answer." ?
import random
print("The random number is:")
for x in range(1):
print(random.randint(1, 6))
while True:
answer = input("Do you want to roll again? 'yes' or 'no' ")
print(answer)
if answer == 'yes':
for x in range(1):
print("The new number is:")
print(random.randint(1, 6))
elif answer == 'no':
print("Thanks for playing.")
break
else:
print("Wrong answer.")
break