From 697610f67e6d6b1fa3ecd65f86f705d89df7a86f Mon Sep 17 00:00:00 2001 From: Kavya Goyal <54931749+Kavya-24@users.noreply.github.com> Date: Mon, 14 Oct 2019 14:56:03 +0530 Subject: [PATCH] Print function for sum Addition of two numbers taken as input by user. --- 2 - Print/ask_for_input.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/2 - Print/ask_for_input.py b/2 - Print/ask_for_input.py index 7721a330..4fecddcb 100644 --- a/2 - Print/ask_for_input.py +++ b/2 - Print/ask_for_input.py @@ -2,4 +2,8 @@ # You need to declare a variable to hold the value entered by the user name = input('What is your name? ') -print(name) \ No newline at end of file +print(name) +number1 = int(input("Please enter first No: ")) +number2 = int(input("Please enter second No: ")) +number3 = number1 + number2 +print(number3)