use string argument in functions in python

Solutions on MaxInterview for use string argument in functions in python by the best coders in the world

showing results for - "use string argument in functions in python"
Ibrahim
08 Mar 2016
1def greet(name, msg="Good morning!"):
2    """
3    This function greets to
4    the person with the
5    provided message.
6
7    If the message is not provided,
8    it defaults to "Good
9    morning!"
10    """
11
12    print("Hello", name + ', ' + msg)
13
14
15greet("Kate")
16greet("Bruce", "How do you do?")
queries leading to this page
python parameter default valuepython string argumentfunction with string argument pythondefault function arguments in pythonhow to access default parameters in pythonis default arguments allowed in pythonfunction parameter default value pythonpython3 default argumentspython default function argumenthow to set default parameter value in pythonpython default argumentspython make default argument a variabledefault parameter pythonpython parameter defaultpython default values for python named parametersexplain python default and python keyword argumentsdefault parametr in pythonget default arguments from function pythondefault parameters pythonpython function parameter function default valuepython default parameter valuestring parameters pythonpython default argshow to set default parameter in pythondefault parameter in pythondefault function parameters pythonset default parameter pythondefault arguments pythonpython pass default argument set to functiondefault parameters in python3how to calling a python function with default argumentshow to write default param value python functionset default value for all argument pythonpython function default argumentspython get arguments from stringstr argument pythonpython function parameters default valuepython default param functiondefault argument pythondefault parametesrs pythondefault argument in pythonparameter string pythonpython default parameterstring method argument pythondefault parameter in function in pythonfunction with default params in pythonsetting default parameters pythonpython parameters default valuedefault argument valuse pythondefault value parameter pythonpython function with default argumentshow to set default value for argument in python functiondefine argument as string pythonuse string argument in functions in python