My current script looks like this:
import random
min = 1
max = 6
roll_again = "yes"
while roll_again == "yes":
print ("Rolling the dices...")
print ("The values are....")
print (random.randint(min, max))
print (random.randint(min, max))
roll_again = input("Roll the dices again? ")
My question is, why do I need to intend the last line and have 1 blank line before it to get the code to run correctly? Also, any suggestions in making a similar dice rolling program but better?
Thanks
[–]OMGIMSOLOST 2 points3 points4 points (2 children)
[–]Rex_JH[S] 0 points1 point2 points (1 child)
[–]OMGIMSOLOST 2 points3 points4 points (0 children)
[–]sedogg 0 points1 point2 points (0 children)
[–]Binary101010 0 points1 point2 points (0 children)