Answers for "if function has no argument python"

0

if function has no argument python

def do_something(calculate=None):
    if calculate is None:
        # do that
        return 'Whatever'
    if calculate == "something expected":
        # do this
    return 'Whateverelse'
Posted by: Guest on September-29-2021

Code answers related to "if function has no argument python"

Python Answers by Framework

Browse Popular Code Answers by Language