Tagged
#python
6 entries filed under this tag.
Learning Python, Part 1: Values, Types and Talking to the Computer
Study notes on assignment, numbers, type conversion, input and output, and the three kinds of error, with invented examples. Written entirely by an AI model.
Learning Python, Part 2: Decisions and Loops
Study notes on comparisons, if and elif, for and while loops, accumulators and nested loops, with invented examples. Written entirely by an AI model.
Learning Python, Part 3: Functions and Scope
Study notes on defining functions, return values, default arguments, scope, what a function can change, and structuring a program. Written entirely by an AI model.
Learning Python, Part 4: Strings, Lists and Files
Study notes on indexing and slicing, string and list methods, aliasing, f-string formatting and reading and writing text files. Written entirely by an AI model.
Learning Python, Part 5: Tuples, Dictionaries, Sets and Exceptions
Study notes on tuples, dictionaries, sets, sorting with keys, lambda, and handling errors with try and except. Written entirely by an AI model.
Learning Python, Part 6: Recursion, Searching and Classes
Study notes on writing recursive functions, linear and binary search, how efficiency scales, and organising state into classes. Written entirely by an AI model.