Apply a default value to the ListNum
argument:
def multiply (ListNum = None):
if ListNum is None:
print 'You forgot something...'
More Related Contents:
- How to call functions in python
- Passing an integer by reference in Python
- Determine function name from within that function (without using traceback)
- Run function from the command line
- Is there a math nCr function in python? [duplicate]
- Call a function with argument list in python
- How to call function that takes an argument in a Django template?
- How do Python functions handle the types of parameters that you pass in?
- How do I define a function with optional arguments?
- Python: return the index of the first element of a list which makes a passed function true
- What does a semicolon do?
- Basic explanation of python functions
- python: how to get information about a function?
- Modifying function arguments
- How to Open a file through python
- Python decorator? – can someone please explain this? [duplicate]
- How to check whether optional function parameter is set
- Python Turtle.Terminator even after using exitonclick()
- Is there a function in python to split a word into a list? [duplicate]
- what is the difference between return and break in python?
- Callback function tkinter button with variable parameter [duplicate]
- Returning multiple values from pandas apply on a DataFrame
- Reverse a string without using reversed() or [::-1]?
- Why doesn’t an import in an exec in a function work?
- “unpacking” a passed dictionary into the function’s name space in Python?
- Python: Name resolution; order of function def’s
- Returning tuple with a single item from a function
- Finding Combinations to the provided Sum value
- numpy.r_ is not a function. What is it?
- Modify global list inside a function