[Python Debugging] SyntaxError: non-default argument follows default argument & How Function Works in Python
def greet(msg="Good morning!", name):
return "Hi! " + name + ', ' + msg
print(greet("John")) # Syntax Error
print(greet("Mary", "How do you do?")) # Syntax Error
Look at the code above and think of why that would cause an error.
When you declar...
jaylog.hashnode.dev1 min read
Parvana
Best
I really like your blog! The insights you share are always so valuable, especially when it comes to improving API debugging skills. Speaking of which, I recently started using EchoAPI, and it has truly streamlined my debugging process.