I recently started trying to learn python, and found this small dice program online:
import random
min = 1
max = 6
roll_again = 'yes'
while roll_again == 'yes' or roll_again == 'y':
print ('rolling the dices...')
print ('The values are...')
print random.randint(min, max)
print random.randint(min, max)
roll_again = raw_input('Roll the dice again?')
However, when trying to execute the program i get a syntax error on the first print random.randint(min, max)
line, saying it's an invalid syntax. I've looked around online for answers, but I haven't been able to find any solutions. I'd appreciate any help.