File "Desktop\python\newsystem\init.py", line 51, in random_n
random_name = a+b+c+d+e+ 'temp.txt'
TypeError: unsupported operand type(s) for +: 'int' and 'str'
import random
def random_name():
a = random.randint(0,9)
b = random.randint(0,9)
c = random.randint(0,9)
d = random.randint(0,9)
e = random.randint(0,9)
random_name = a+b+c+d+e+ 'temp.txt'
return random_name
print random_name
How can i make it so that it adds the random numbers and the temp.txt to
random_name variable w/out causing any error?
--
http://mail.python.org/mailman/listinfo/python-list