Computer Science, asked by saidharshan404, 6 months ago

Chapter 6 PYTHON FUNDAMENTALS
Program to obtain three numbers and print their sum
# to input 3 numbers and print their sum
num1 = int( input("Enter number 1 :"))
149
6.1
The output produced by above program is as
num2 = int( input("Enter number 2 : ))
num3 = int( input("Enter number 3 :")
Sum= num1 + num2 + num3
print("Three numbers are : ", num1, num2, num3)
print("Sum is : ", Sum)
261
rogram
Enter number 1 : 7
Enter number 2 : 3
Enter number 3 : 13
Three numbers are : 7 3 13
Sum is : 23
shown on right.

Answers

Answered by RuwaisnZaid
0

Explanation:

l = []

num = str(input("enter a no"))

y = str(input("enter no"))

z = str(input("enter a no"))

l.append([num,y,z])

num = int(l[0][0][2])+int(l[0][1][2])+int(l[0][2][2])

print("sum",num)

*mark me as brainly

Similar questions