On 7/16/19 2:33 PM, Steven D'Aprano wrote:
> x = Parrot()
>
> Now x is a reference to a Parrot instance. y remains a reference to the
> list.
>
> x.colour is a reference to the string "blue" (by default).
>
> x.speak is a reference to the "speak" method of Parrot objects.
>
>
>
> Does this
On Tue, Jul 16, 2019 at 12:08:10PM +, AHIA Samuel wrote:
> Please what are references in Python development?
x = 19
y = x
The name "x" is a reference to the int 19; the name y is a reference to
the same int.
x = "Hello world"
Now the name "x" is a reference to the string "Hello world". y
Please what are references in Python development?
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor