Skip to content
Jorge Estanislao Barsoba edited this page Jul 17, 2024 · 1 revision

Must-Knows - Python

Intro

  • Created by Guido van Rossum in 1991
  • Its name comes from Monty Python
  • Interpreted

Type system

  • Dynamic (weak-typed), as type-checking is performed at runtime
  • Duck-typed, like JavaScript (and unlike PHP or C#), the name of the class does not determine the type of an object

    If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck.

  • Type system: TBC

Variables

Types

  1. Integers (int)
  2. Floating point (float)
  3. Strings (str)
  4. Lists (list)
  5. Dictionaries (dict)
  6. Tuples (tup)
  7. Sets (set)
  8. Booleans (bool)

Clone this wiki locally