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.
Get live Maths 1-on-1 Classs - Class 6 to 12
Very Short Answer Type Questions (1 Mark each)
Very Short Answer Type Questions (1 Mark each)
Last updated at March 16, 2023 by Teachoo
Answer:
id(a)
id(b)
To retrieve the address of a variable, the id( ) method is used.
Get live Maths 1-on-1 Classs - Class 6 to 12