Now that we know how to build a module, the time has come to discover what goes into coding a module. Mostly this is a matter of making use of the C API and this is the subject of most of this book.
A 50 minute lesson in two parts, outlining the meanings of the terms Module, Function and Procedure, then facilitating the creation simple dice-roll and graphics-drawing code tasks which demonstrate ...
A C API function has a fixed signature and has to return a pointer to a PyObject. Even if your function is going to return nothing at all it still has to return a pointer to a PyObject. This generally ...
Python’s new template strings, or t-strings, give you a much more powerful way to format data than the old-fashioned f-strings. The familiar formatted string, or f-string, feature in Python provides a ...
Master Python strings! This workbook explores string manipulation, basic Python formatting, and essential methods to handle text data, empowering your students’ to work efficiently with text. This ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results