请问下求三个整数平均数的这个程序为啥总是报如下错误,如何解决呢
num1 = input("Input the first integer:")
num2 = input("Input the second integer:")
num3 = input("Input the third integer:")
average = int((num1 + num2 + num3) / 3)
print('average = ' + average)
Traceback (most recent call last):
File "D:\Pycharmproject.py", line 71, in <module>
average = int((num1 + num2 + num3) / 3)
TypeError: unsupported operand type(s) for /: 'str' and 'int'