Computer Science, asked by singhamrita27789, 7 months ago

write a program in Python to accept 5 values from the user one by one and add it to the list.. pls answer this and help me out

Answers

Answered by rupam83
0

Answer:

# Store input numbers

num1 = input('Enter first number: ')

num2 = input('Enter second number: ')

# Add two numbers

sum = float(num1) + float(num2)

# Display the sum

print('The sum of {0} and {1} is {2}'.format(num1, num2, sum))

I've done it for 2 input number s.

in your programming you have to take it till num5..

and then add all num1 to num5

hope this will help you...

happy learning...

Similar questions