Write a python program to find sum of two numbers using command line arguments.

1)a) write a python program to find sum of two numbers using command line
arguments.

 

 

n1=int(input("Enter the number 1 value:"))

n2=int(input("Enter the number 2 value:"))

 

sum=n1+n2

print("The sum of 2 values is",sum)

 

Comments

Popular posts from this blog

Write a python program to compute cumulative product of a list of numbers (write function cumulative_product).

Write a Python program to compute distance between two points taking input from the user. Formula for Pythagorean theorem for compute distance between two points is: