Answers for "arguments in python script"

11

python arguments

import sys

print ("the script has the name %s" % (sys.argv[0])
Posted by: Guest on November-18-2019
0

Python Function Arguments

def greet(name, msg):
    """This function greets to
    the person with the provided message"""
    print("Hello", name + ', ' + msg)

greet("Monica", "Good morning!")
Posted by: Guest on May-26-2022

Code answers related to "arguments in python script"

Python Answers by Framework

Browse Popular Code Answers by Language