I made some code that will roll two die and ask the user how many times. After that it will ask the user if they want to play again. For some reason its not breaking out of one of the while loops when it should.
Here's the code:
import random
again = True
rolls = 0
while again == True:
rolls = float(raw_input("How many times would you like the dice to roll?"))
while rolls >= 1:
dice1 = random.randint(1,6)
dice2 = random.randint(1,6)
print dice1 , dice2
rolls = rolls - 1
again = raw_input("Would you like to play again?")
if again == "Yes" or "Y" or "yes" or "y":
again = True
else:
again = False
Can any of you guys help me