#29 | Python Beginners Tutorial in Tamil | Mutable VS Immutable Object in Python tamil

preview_player
Показать описание
#29 | Python Beginners Tutorial in Tamil | Mutable VS Immutable Object in Python tamil

Everything in Python is an object. And what every newcomer to Python should quickly learn is that all objects in Python can be either mutable or immutable.

Lets dive deeper into the details of it… Since everything in Python is an Object, every variable holds an object instance. When an object is initiated, it is assigned a unique object id. Its type is defined at runtime and once set can never change, however its state can be changed if it is mutable. Simple put, a mutable object can be changed after it is created, and an immutable object can’t.

Objects of built-in types like (int, float, bool, str, tuple, unicode) are immutable. Objects of built-in types like (list, set, dict) are mutable. Custom classes are generally mutable. To simulate immutability in a class, one should override attribute setting and deletion to raise exceptions.

ID and TYPE
The built-in function id() returns the identity of an object as an integer. This integer usually corresponds to the object’s location in memory, although this is specific to the Python implementation and the platform being used. The is operator compares the identity of two objects.

__
like our face book page..
--------------------------------------------------------------------------------
send request our channel official facebookprofile...
---------------------------------------------------------------------------------

#santratechspot #python #objects
Рекомендации по теме
Комментарии
Автор

anna verralevel neega sonna mari nan one one topic aa learn pennettu varen unga channel thhan tamil youtube laya python nuku best keep going on .IF THERE IS ANY MISTAKE IN SPELLING SORRY

chandranirmal
Автор

Concept it was ok, but video not clarity, so skip this type of issue in feature

senthilkumar-sbxb
Автор

Purpose of mutable and immutable oru program'le explain pannunga bro

kirubababu
Автор

Naa romba seriousaaa unga chennela follow panni coding kathukalam nu iruken... Please ipdii koolaapaathinhaa

Kirubakaran_Alex
Автор

Brooo... Renduu oreee mathirii thaaa solringaaa

Kirubakaran_Alex