- int
- float
- REPL
REPL - Read Evaluate Print Loop
A variable comes to existence the first time we assign a value to it. It points to an object and that object knows about its type.
examples/basics/repl.txt
>>> a = "abc" >>> len(a) 3 >>> a = '3' >>> a + 3 Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: cannot concatenate 'str' and 'int' objects >>> int(a) + 3 6 >>> a = '2.3' >>> float(a) + 1 3.3