I\'m currently using singpath.com to practice my python, but I face an issue with a problem:
The expected result is:
>>>CurryPuff(3)
3.60
You can't call a function with 1 argument if it expects 2, as CurryPuff()
does. However, you can define a default argument that is used if no argument is passed:
def CurryPuff(x, typePuff=None):
if typePuff is None:
# and so on...
You can do this with any value for any argument. You may only omit arguments if a default value is defined.