Answers for "get function args python"

0

python get args

import sys

print(sys.argv)
Posted by: Guest on February-23-2021
0

args in python

def display(a,b,c):
    print("arg1:", a)
    print("arg2:", b)
    print("arg3:", c)

lst = [2,3]
display(1,*lst)
Posted by: Guest on June-24-2021

Python Answers by Framework

Browse Popular Code Answers by Language