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? sa 11 cs chapter 6, sa 11 ip chapter 3, Uncategorized / PythonCSIP CS IP 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? Read More »
18. The id ( ) can be used to get the memory address of a variable. Consider the following code and tell if the id( ) functions will return the same value or not (as the value to be printed via print( ) ) ? Why ? [There are four print( ) function statements that are printing id of variable num below] sa 11 cs chapter 6, sa 11 ip chapter 3, Uncategorized / PythonCSIP CS IP 18. The id ( ) can be used to get the memory address of a variable. Consider the following code and tell if the id( ) functions will return the same value or not (as the value to be printed via print( ) ) ? Why ? [There are four print( ) function statements that are printing id of variable num below] Read More »