Question: In the code segment in question 2, when we are returning the value, why do we write line (1) instead of line (2)? (1) print

In the code segment in question 2, when we are
In the code segment in question 2, when we are returning the value, why do we write line (1) instead of line (2)? (1) print (myFunction (23,43) ) (2) myFunction (23,43) A. O They both mean the same thing, so you can write either one B. The first statement returns the value and prints the program output, while the second one would return the value without producing any output C. We always use print when we are calling functions, as it is syntactically correct D. O It is good programming practice to use a print statement when returning a value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!