I am using python for producing random in integer between the two value from the user, My code is as follows. I am getting error:
from random import *
i1 = input('Enter the N1 :')
i2 = input('Enter the N2 :')
r = randint({0},{1}.format(i1,i2))
print r
Here I am taking i1 and i2 from user and want to produce random integer between i1 and i2.
I am getting the error:
File "index.py", line 6
r = randint({0},{1}.format(i1,i2))
^
SyntaxError: invalid syntax