Skip to content

Commit 256c8fb

Browse files
Update add_two_number.py
1 parent 105cbb5 commit 256c8fb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

0002/add_two_number.py

-6
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,16 @@
33

44
num1 = 1.5
55
num2 = 6.3
6-
76
# Add two numbers
87
sum = num1 + num2
9-
108
# Display the sum
119
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))
1210

13-
14-
1511
# 2: Add Two Numbers With User Input
1612
# Store input numbers
1713
num1 = input('Enter first number: ')
1814
num2 = input('Enter second number: ')
19-
2015
# Add two numbers
2116
sum = float(num1) + float(num2)
22-
2317
# Display the sum
2418
print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

0 commit comments

Comments
 (0)