#functions #function is a small code that is responcible for single task #each function will have: name, parameters (could be empty list) #and return value (could be void or no return value) #writing function will involve two steps: #writing function definition and using function (calling function) #write a function that has two parameters and returns sum of the #parameters #write a program that reads 4 integers, and finds sum of first two #number and sum of third and forth input #function definition #sum_two_ints - name of the function #a and b - function parameters def sum_two_ints(a, b): result = a+b return result def main(): for i in range(10): a=int(input("enter first num ")) b=int(input("enter second num ")) result=sum_two_ints(a, b) print(a,"+",b,"is",result) main()