Write a program allowing user to enter 2 integers, then calculate and print out their sum.
Input: A single line consists of 2 integers a and b, separated by a space. a and b are 32-bit integers, and it is guaranteed that their sum also is.
Output: Print the result following the format "a + b = c" of where c is the sum of a and b.
I have tried to do the code below.
# Reads two numbers from input and typecasts them to int using
# map function
a, b = map(int, input(4 5).split())
c = a + b
print('{0} + {1} = {2}'.format(a, b, c))
I expect the output format is "a + b = c"