16. Carefully look at the following code and its execution on Python shell. Why is the last assignment giving error ? sa 11 cs chapter 6, sa 11 ip chapter 3, Uncategorized / PythonCSIP CS IP 16. Carefully look at the following code and its execution on Python shell. Why is the last assignment giving error ? 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 »