I am currently learning Python and am not very good at it and am confused as to what is going on. Have shared my code below:-
num1 = int(input("What is your first number? "))
num2 = int(input("What is your second number? "))
num3 = int(input("What is your third number? "))
numlist = [num1, num2, num3]
print(numlist)
print("Now I will remove the 3rd number")
print(numlist.pop(2) + " has been removed")
print("The list now looks like " + str(numlist))
When I run the program, entering in numbers for num1, num2 and num3, it returns this:
Traceback (most recent call last):
TypeError: unsupported operand type(s) for +: 'int' and 'str'