What is aliasing ? Explain with an example.

Question :

What is aliasing ? Explain with an example.

A circumstance where two or more variables refer to the same object is called aliasing. If variable a refers to an object and we assign b to a, then both variables refer to the same object.
For example,
>>> a = [ 1,3,5 ]
>>> b = a
>>> b is a 
true


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad