Everything is an object… Mutable or Immutable.

  • Ubuntu 14.04 LTS
  • Python 3.4
  • Interpreter’s Python
  • Knowledge Basic handling interpreter’s Python
  • Python programming language
>>> a = 1 
>>> id(a)
140024684710016
>>>
>>> a = 1 
>>> id(a)
140024684710016
>>> hex(id(a))
'0x7f5a09978880'
>>>
>>> a = 1 
>>> id(a)
140024684710016
>>> hex(id(a))
'0x7f5a09978880'
>>> type(a)
<class 'int'>
>>>
>>> a = [1, 2, 3] 
>>> hex(id(a))
'0x7f3520bdfb00'
>>> a.append(4)
>>> a
[1, 2, 3, 4]
>>> hex(id(a))
'0x7f3520bdfb00'
>>>
>>> x = 5.0 
>>> type(x)
<class 'float'>
>>> hex(id(x))
'0x7fec0806f2f0'
>>> x += 7.0
>>> x
12.0
>>> hex(id(x))
'0x7fec0814fad0'
>>>

--

--

--

I like to trip, to eat and to study software’s development. I usually self-study in my time free, because I like to learn things news.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

HiveMQ Cloud, part 2 — Using MQTT and Raspberry Pi to Visualize Sensor Data on a TilesFX Dashboard

Mortgage Fraud Attorney

mortgage fraud attorney

Pass record into the Lightning Flow Builder

How to sample AppSync resolver logs

Dual booting Kali/Ubuntu on a gaming laptop!

MERGE SORT

2D Game Dev Journey — Day 2: Prototyping an Enemy

Tips and tricks for logging and monitoring AWS Lambda functions

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Victor Zuluaga

Victor Zuluaga

I like to trip, to eat and to study software’s development. I usually self-study in my time free, because I like to learn things news.

More from Medium

Python Basics, Variables and Datatypes

How To Get Class Name In Python — pythonpip.com

Property decorator is another attribute that never exist within the class definition

Python list, tuple, and set.