Abhay Parashar
May 11, 2021

--

No,

References are used to refer an existing variable in another name whereas pointers are used to store address of variable.

Reference an Pointer are two different things. Every value in python is a object not pointer and everything in python is done using reference not with pointer.

If it was with pointer then In the example the b value will not update.

--

--

Abhay Parashar
Abhay Parashar

Written by Abhay Parashar

Guarding Systems by Day πŸ‘¨β€πŸ’», Crafting Stories by Night ✍🏼, Weaving Code by Starlight πŸ€–

No responses yet