Question 6 Consider the following three functions and answer the subsequent ques
ID: 3745617 • Letter: Q
Question
Question 6 Consider the following three functions and answer the subsequent questions. def funa(x) def funb(x) def func(x) return (x) print (x) What wll the following code fragments print? >>> a, x, y F 3, 4, >>> print (funa(a)) >>> print(a, x, y) s>> a, x, y-3, 4, 5 >>> print(funb (a)) >>> print(a, x, y) - 3, 4, 5 >>> print(func (a)) >>> print(a, x, y) Mark the code fragments below as valid or not valid >>funa(funb(5)) >>>funa(func(5)) >>>funb(funa(5)) >funb(func (5)) >func(funa(5)) >>>func(funb(5))Explanation / Answer
Output 1 --------- None 3 4 5 Output 2 --------- 9 3 4 5 Output 3 --------- 9 None 3 4 5 =================================================== funa(funb(5)) Valid funa(func(5)) Invalid funb(funa(5)) Invalid funb(func(5)) Invalid func(funa(5)) Invalid func(funb(5)) Valid
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.