I am doing an assignment. What it is is not important - this question should be very simple. I need to make a randomly generated question. To do this for addition my code is:
num1 = (random.randint(0,12))
num2 = (random.randint(0,12))
question = (num1 + "" + "+" + "" + num2)
print(question)
I get the error:
question = (num1 + "" + "+" + "" + num2)
TypeError: unsupported operand type(s) for +: 'int' and 'str'
I think I understand what the problem is but I don't know how to fix it. I would be grateful for any help. I am using python-idle 3.8