Question: Consider the following function: def whoa(a,b,c-5): return a + b + c D What is the difference between x - whoa(3.4.0) and y - whoa(3.4)
Consider the following function: def whoa(a,b,c-5): return a + b + c D What is the difference between x - whoa(3.4.0) and y - whoa(3.4) You need to select all correct statements: In the function definition, "ch is a default argument inside the function c has the value 5 if we dont specify it when we call the function When we write whoa(3:40) we overwrite the default for c of 5 and set a to zero inside the function When we write whoa(34) we only specify the first 2 function arguments and thereforces 5 inside the function a When we write Whoa 3.1) wc only specify the first 2 function arguments, and therefore is o inside the function When we write whoa 340 the "o indicates that we only specify the first anchon arguments and therefore cis inside the function Consider the following function: def whoa(a,b,c-5): return a + b + c D What is the difference between x - whoa(3.4.0) and y - whoa(3.4) You need to select all correct statements: In the function definition, "ch is a default argument inside the function c has the value 5 if we dont specify it when we call the function When we write whoa(3:40) we overwrite the default for c of 5 and set a to zero inside the function When we write whoa(34) we only specify the first 2 function arguments and thereforces 5 inside the function a When we write Whoa 3.1) wc only specify the first 2 function arguments, and therefore is o inside the function When we write whoa 340 the "o indicates that we only specify the first anchon arguments and therefore cis inside the function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
