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

 import sys

num1=float(sys.argv[1])

num2=float(sys.argv[2])

print("The num1 Value is",num1)

print("The num2 Value is",num2)

print("The sum of two numbers is",num1+num2)


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: