Wednesday, November 7, 2018

Python




1. High level languaged - human readable, not machine readable
2. Interpreted = not compiled into code machine understands but interpreted right away
3. Dynamic (or dynamically typed): var can be assigned a string and int later. Not predefined type or functionality. Good for interactive fashion.

Python interpreter is stateful = variables exist between cells.

Python relies on spaces and new lines.
No return type (since there's no type)


===========================
def add_numbers(x, y, z=None):
    return x+y+z

print(add_numbers(1, 2, 3))
===========================



No comments:

Post a Comment