def print_sum(a,b,c):
print(a+b+c)
one = int(input("Enter the 1st number: "))
two = int(input("Enter the 2nd number: "))
three = int(input("Enter the 3rd number: "))
print_sum(one,two,three)
I wrote my code in python 3.8. I hope this helps.
5.7m questions
7.4m answers