Hi, I just began python and made a dice simulator. I am having the following issues: 1)the random integer is always the same (it is a value from 1 to 6, but within the loop it is always the same). Can I fix this or perhaps this is because I'm using an online interpreter?2) After the loop goes through once, the second input of "Would you like to roll again" (even if yes) will print "ByeBye!" No matter what the response is. I think I need to chance my if input("Would you like to roll again?") != "yes" or "Yes": statement? Any advice would help. Thanks!
Python:
received = input("Type roll to go!")
import random
value = random.randint(1,6)
while received == "Roll" or "roll":
print(value)
again = input("Would you like to roll again?")
if again == "yes" or "Yes":
print("Ok!")
if input("Would you like to roll again?") != "yes" or "Yes":
print("ByeBye!")
break
else:
print("mistake!")
Last edited by a moderator: