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.
Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class
Very Short Answer Type Questions (1 Mark each)
Very Short Answer Type Questions (1 Mark each)
Last updated at May 29, 2023 by Teachoo
Answer:
id(a)
id(b)
To retrieve the address of a variable, the id( ) method is used.
Learn in your speed, with individual attention - Teachoo Maths 1-on-1 Class