Help python please 8how many arguments are provided to print

Help python please

8)how many arguments are provided to print? print([1,2],max(3,4),foo(5,bar(6,bazz(7))))

In what order do these function calls occurs? Write the names print, str, int, and input in the correct order from first to last.

Solution

Ans.7

print(str(int(3.14)+6),input(\"?\"))

In the following order i.e from first to last the above functions call will occur:
1.print
2.input
3.str
4.int

Explanation:
first print will be called , resulted user would be asked to enter the input i.e ?
then user will enter any number for example here the number entered by the user=10
now str would be called,then int would be called resulted int(3.14)=3,3+6=9
str function will convert 9 into \'9\'

hence final output:(\'9\', 10)


***********************************

Ans.8

print([1,2],max(3,4),foo(5,bar(6,bazz(7))))

Number of arguments provided to print here:3
first argument:[1,2]
second argument:max(3,4)
third argument:foo(5,bar(6,bazz(7)))


*****************************************


Please let me know in case of any question.

Help python please 8)how many arguments are provided to print? print([1,2],max(3,4),foo(5,bar(6,bazz(7)))) In what order do these function calls occurs? Write t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site