Quiz
Python *args and **kwargs Quiz
…keyword arguments with **kwargs , combining argument types and positional and keyword arguments . After this one, try the Python Functions Quiz or the Python Return Values Quiz .
Showing 51–60 of 73
Quiz
…keyword arguments with **kwargs , combining argument types and positional and keyword arguments . After this one, try the Python Functions Quiz or the Python Return Values Quiz .
Quiz
…this one, try the Python print() Quiz or the Python Data Types Quiz . What does this code print? What does this code print? What happens when this code runs? Which of these expressions give the string…
Quiz
…order of operations . After this one, try the Python Data Types Quiz or the Python Basics Quiz . Which operator gives the remainder of a division, so that 14 ? 4 gives 2? What does this code print?…
Article Python Fundamentals
…Once a branch runs, the rest are ignored. Common condition types Here's what you'll use most often when writing conditions: Comparisons: == , != , < , > , <= , >= Logical operators: and , or , not…
Challenge
Point the feed parser from "Parse the whole feed" at telemetry.csv: read it with csv.DictReader, using the header row for the field names, then find the hottest temperature reading, comparing the…
Example
Function can return multiple values as a tuple. Unpacking on assignment.
Example
Functions enumerate() and range() extend for loop capabilities in Python.
Example
When to use tuples instead of lists? Comparison of properties and applications.
Example
Learning to import modules in Python. Modules extend your program capabilities.
Challenge
…of a number, and the check from "Alert level" stops with a TypeError in the middle of a pass. Extend your check so a missing reading is reported, not crashed on, then handle missing values in the…