Add two numbers with user input in python.

Published: 21 September 2021
on channel: CODING WORLD
2,302
31

python programming tutorial. Keep watch for more videos

program:

add two numbers with user input:

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))


On this page of the site you can watch the video online Add two numbers with user input in python. with a duration of hours minute second in good quality, which was uploaded by the user CODING WORLD 21 September 2021, share the link with friends and acquaintances, this video has already been watched 2,302 times on youtube and it was liked by 31 viewers. Enjoy your viewing!