Skip to content

Python Getting Started

  • Readable syntax, fast to prototype
  • Massive ecosystem (data science, web, automation)
  • Strong in AI/ML tooling
squares = [x**2 for x in range(10)]
filtered = [x for x in squares if x > 10]
def apply(func, value):
return func(value)
result = apply(str.upper, "hello") # "HELLO"
with open("file.txt") as f:
content = f.read()
# file is automatically closed
  • OOP and dataclasses
  • Decorators
  • Async/await
  • Type hints