Skip to Content
Course content

Variables, Data Types & Operators

Master the vocabulary of Python: how values are stored, typed and combined.

Key topics

  • Variables as names bound to objects; assignment and reassignment; naming rules and conventions (snake_case).
  • Core types: int, float, str, bool, NoneType; type() and isinstance().
  • Strings: indexing, slicing, immutability, f-strings, common methods (strip, split, join, replace).
  • Operators: arithmetic, comparison, logical (and/or/not), membership (in), identity (is), assignment shortcuts; operator precedence.
  • Truthiness and type conversion (int(), str(), float()).

Exercise / deliverable

Build a profile_card.py that stores your name, age, height and "is enrolled" flag in variables, then prints a one-line summary using an f-string with a type shown for each value.

Level: Beginner | Duration: ~0.5h. Names, values and the core built-in types, plus every operator group you will use daily.
Rating
0 0

There are no comments for now.