Example
Logical Operators and, or, not
Combining conditions with logical operators and, or and not.
Showing 1–10 of 233
Example
Combining conditions with logical operators and, or and not.
Challenge
Extend the feed parser so continue skips blank lines and comment lines, then report damaged lines with too few fields instead of crashing, with a count of parsed and damaged lines.
Challenge
Slice the date and the time of day out of an ISO timestamp like 2026-03-14T09:30:05Z, then rebuild it in the day.month.year format used in Poland and much of Europe.
Article Python Fundamentals
…exploration examples. Learn about number types, operators, and practical applications that will help you start your programming journey in an engaging way.
Example
Functions enumerate() and range() extend for loop capabilities in Python.
Example
Break (exit) and continue (skip) statements for flow control in loops.
Example
Operator // for floor division and % for remainder (modulo) in Python.
Example
Difference between positional and keyword arguments. Flexible function calling.
Example
Methods sort() and reverse() for ordering list elements.
Example
Accessing list elements by index. Changing and removing elements.