Challenge
Skip blanks and comments
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.
Showing 11–19 of 19
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
Extend the OK/WARN/CRITICAL check from Alert level so a for loop runs it over every temperature in a list, then count the WARN and CRITICAL readings for a summary line.
Challenge
Predict, investigate and extend a mission config held in variables: text, whole numbers, decimals and True/False. A PRIMM challenge on Python data types.
Example
Functions enumerate() and range() extend for loop capabilities in Python.
Example
Learning to import modules in Python. Modules extend your program capabilities.
Example
Tuples are immutable lists. Once created, they cannot be modified.
Quiz
…len() and in Changing items, append() , insert() and extend() Removing items with pop() and remove() sort() vs sorted() , min() , max() and sum() Copying a list, and lists inside lists How it works 15…
Article Python Fundamentals
…lines of code You can easily create simple games There are extensive libraries for space and science calculations Here's a real example - this small program already does something useful: distance_km…
Article Python Fundamentals
…Visual Studio Code ( VS Code ) : Free, versatile, and extensible. PyCharm : Designed specifically for Python development. Try PyCharm Community Edition for free. Jupyter Notebook : Great for…