From 5a5314bea42f4c0ef319b2353eb0ca9f09bbb783 Mon Sep 17 00:00:00 2001 From: akshit bansal <72249011+akshit250@users.noreply.github.com> Date: Sat, 3 Oct 2020 19:22:08 +0530 Subject: [PATCH] Create addition using function --- addition using function | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 addition using function diff --git a/addition using function b/addition using function new file mode 100644 index 0000000..16a0e2d --- /dev/null +++ b/addition using function @@ -0,0 +1,9 @@ +#Python program to add two numbers using function + +def add_num(a,b):#function for addition + sum=a+b; + return sum; #return value + +num1=25 #variable declaration +num2=55 +print("The sum is",add_num(num1,num2))#call the function