Write a Python statement to retrieve the address of the variable ‘a’ and ‘b’.
Answer:
id(a)
id(b)
To retrieve the address of a variable, the id( ) method is used.
Very Short Answer Type Questions (1 Mark each)
Very Short Answer Type Questions (1 Mark each)
Last updated at April 16, 2024 by Teachoo
Answer:
id(a)
id(b)
To retrieve the address of a variable, the id( ) method is used.