Tag view

#basics

Cross-subject tag search for related interview cards.

Clear

Results update as you type. Press / to jump straight into search.

Tagged with basics

21 cards

Python Easy Theory

Core data types in Python

Core Python data types include numbers, strings, lists, tuples, sets, dictionaries, booleans, and `None`.

  • Mutable and immutable types differ
  • Some are ordered, some are hash-based
  • Choose types based on access and update patterns

Core data types in Python

Python Easy Theory

Dynamic typing and strong typing in Python

Python is dynamically typed because types are checked at runtime, and strongly typed because values do not silently coerce across unrelated types.

  • Names bind to objects
  • Type checks happen at runtime
  • Explicit conversion is preferred

Dynamic typing and strong typing in Python

Python Easy Theory

Interpreted vs compiled in Python

Python source is usually compiled to bytecode first, then executed by the interpreter's virtual machine.

  • Source is not run directly
  • CPython compiles to bytecode
  • Execution still happens inside an interpreter

Interpreted vs compiled in Python

Python Easy Theory

Mutable vs immutable objects

Mutable objects can change in place; immutable objects require a new object for a changed value.

  • List and dict are mutable
  • str and tuple are immutable
  • Matters for side effects and hashing

Mutable vs immutable objects

Python Easy Theory

Python operators overview

Python includes arithmetic, comparison, logical, membership, identity, bitwise, and assignment operators.

  • Operator families solve different problems
  • `is` is identity, `==` is equality
  • Bitwise operators are lower-level but still interview-relevant

Python operators overview

Python Easy Theory

Python overview and key features

Python is a high-level, readable, batteries-included language that supports procedural, object-oriented, and functional styles.

  • Readable syntax
  • Large standard library
  • Works well for scripting, backend, data, and automation

Python overview and key features

Python Easy Theory

Truthy and falsy values in Python

Python treats certain values as false in conditionals, including `False`, `None`, zero values, and empty containers.

  • Empty collections are falsy
  • Most objects are truthy by default
  • Truthiness powers concise condition checks

Truthy and falsy values in Python

JavaScript Medium Theory

Function declarations, function expressions, arrow functions, default parameters, rest parameters, callbacks, higher-order functions, first-class functions, IIFE, and pure functions

JavaScript functions are first-class values, which is why callbacks, higher-order utilities, and different function forms all matter.

  • Declarations and expressions behave differently
  • Arrow functions change `this` behavior
  • Pure functions avoid hidden side effects

Function declarations, function expressions, arrow functions, default parameters, rest parameters, callbacks, higher-order functions, first-class functions, IIFE, and pure functions