Created
October 3, 2021 15:49
-
-
Save moulik-source/b884c01d1db63a945b42a372257b7b18 to your computer and use it in GitHub Desktop.
input function example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num1 = input("Enter the value: ") | |
num2= input("Enter the value: ") | |
sum = float(num1) + float(num2) | |
print("The sum of {0} and {1} is {2}".format(num1, num2, sum)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment