Computer Science, asked by dhoteharsha017, 3 months ago

17. Consider below given two sets of codes, which are nearly identical, along with their execution in Python
shell. Notice that first code-fragment after taking input gives error, while second code-fragment does
not produce error. Can you tell why ?
(a)
>>>print(num = float(input("value1:")) )
Input taken as per execution of input()
value1:67
TypeError: 'num' is an invalid keyword argument for this function
(b)
>>>print(float(input("value1:')))
value1:67
Code successfully executed. No error reported.
67.0
Contractoare paid​

Answers

Answered by trishasudheesh
0

Answer:

What is the default return value for a function that does not return any value explicitly?

A. None

B. int

C. double

D. public

E. null

Click here to view the answer.

Explanation:

do it

Similar questions