QUESTION IMAGE
Question
in the function call calculate_tax(amount=100, rate=0.07), what type of arguments are being used?
- keyword arguments
- default arguments
- positional arguments
- required arguments
Brief Explanations
Keyword arguments pass values by explicitly naming the parameter they correspond to, which matches the format parameter=value shown in the function call. Default arguments use pre-defined values if no input is given, positional arguments rely on order, and required arguments are mandatory inputs without explicit naming here.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
Keyword arguments