19. 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("valuel:")) )
valuel:67  Input taken as per execution of input()
Traceback (most recent call last):
    File "<python-input-56-78b83d911bc6>", line 1 , in <module>
       print(num = float(input("value1:")) )
TypeError: 'num' is an invalid keyword argument for this function

b)
>>> print(float(input("valuel:")) )
valuel:67
67.0
Code successfully executed. No error reported.

# The reason for the error in the first one is that the input value is being assigned to a variable while at the same time printing it.
In the second case, there is no error because only the printing part is being done