Untitled

 avatar
unknown
plain_text
2 years ago
262 B
1
Indexable
# this is myfile.py

import sys

# function defination
def add_nums(num1 ,num2):
    print('Their addition is:')
    print(num1 +num2)

# read the file arguments passed
num1 =sys.argv[1]
num2 =sys.argv[2]

# function call
add_nums(num1 ,num2)

Editor is loading...