Start the line with #.
Programming flashcards
Python Basics: Syntax & Data Types
A friendly Python starter deck covering variables, collections, functions, and control flow.
#python#programming#syntax#basics
Card preview
An ordered, mutable collection: items = [1, 2, 3].
An ordered, immutable collection: point = (2, 4).
A key-value collection: user = {"name": "Ana"}.
Use def: def greet(name): return f"Hi {name}".
The number of items in a collection.
It defines code blocks such as loops, functions, and conditionals.
for item in items: ...