
Learn Python basics, lab 1, by manipulating strings with plus and times operators and triple quoted literals, and compare Python 2 and 3 print behavior for clean, single string output.
Demonstrate lab 2 solutions with a for loop using range instead of a while loop, print end to output horizontally, and handle binary strings as sequences of characters.
Explore lab 3 solutions in python, covering money amounts with floats, readable code, and a binary search guessing game with high and low bounds and clear output formatting.
Demonstrates a forever loop that prompts for a number, converts it to an integer, and retries until valid. Breaks to exit and formats the hex value.
Practice Python function design by implementing named functions, returning values vs printing, and following a style guide for function labels and formatting, as shown in lab 5.
An instructor walks through lab 6 solutions, showing a flip coin function that returns heads or tails using random and analyzes averages across 100 trials.
Declare the global price at line 25 to fix the scope and let Paperwhite and Mudd access the same global price, as shown in Lab 7 Solutions.
Review lab 8 solution for Python basics, featuring a cost calculator with a default tax and demonstrations of positional and keyword arguments, breakfast function usage, and a lead into sequences.
This is Pythonic Python - Part I of a complete Python course for programmers, in four parts.
The focus, besides learning Python, is learning Pythonic idioms so that your code is beautiful, easy to read and modify, and fast-running.
The Syllabus:
Part I - The Python Basics
Make yourself useful.
Part II The Buzz
Heavy-hitting, time-saving, fun facilities.
Part III Pythonic OOP
So brilliant, you might need shades.
Part IV The Expert
Know it all.