[Solved] Python function define: A message will prompt up if missing entering an argument


Apply a default value to the ListNum argument:

def multiply (ListNum = None):
    if ListNum is None:
        print 'You forgot something...'

4

solved Python function define: A message will prompt up if missing entering an argument