What happens when a function doesn't have a return statement?
- It raises an error
- It returns 0
- It returns None
- It returns a blank string
When a function lacks a return statement, it automatically returns None. This indicates that the function doesn't return a specific value.
Loading...
Related Quiz
- In Seaborn, the ____ function is used to plot univariate or bivariate distributions of observations.
- How do you access the first item in a tuple named my_tuple?
- What are the potential risks of importing a module with the same alias as a standard Python module?
- In Flask, to register a function to run before each request, you would use the ____ decorator.
- In Python, the ____ statement is used to interrupt loop iteration and jump to the next iteration of the loop.