
Define and call functions in Python to reuse code, using whitespace to define blocks and avoid repetition.
Define and use Python functions with parameters to perform repeated math tasks, handle user input, convert strings to integers, and call functions with single or multiple parameters, including exponentiation.
Explore the difference between return and print in Python, and learn how returning values enables storing results in variables for further manipulation.
Learn how to define functions with default arguments in Python, using a greeting example with default name and age. See how missing inputs fall back to defaults.
Explore the difference between local and global variables and their scopes in Python, showing how global variables are accessible everywhere while local variables stay inside function scope.
This lecture guides building an interactive calculator using functions for add, subtract, multiply, divide, exponent, and remainder, with floor and square root calculations via the math module.
Discover how to create and print Python lists, access elements by zero-based indexes, and retrieve the last element using a negative index.
Explore essential list methods in Python, including append, length, count, and sort, to edit and organize lists efficiently for real-world tasks.
Learn list methods in Python 3 part 2, focusing on remove and pop, removing by value or index, and what pop returns for assignment.
Learn how to slice lists in Python by choosing start and end indices, including the start but excluding the end, and using steps to pick every nth item.
Learn to manage pizza data with Python by pairing pizzas with prices using zip and tuples, then sort, slice, and modify the list with indexing and pop.
Explore how strings resemble lists by accessing letters and slicing strings using start, end, and optional step parameters, with practical examples like extracting 'Sam' from 'Samantha'.
Discover essential Python string methods, including upper, lower, and title for case manipulation, and split and join for breaking and joining strings; learn to reassign results to update variables.
Learn to use the string methods replace and find, noting strings are immutable and must be reassigned. Leverage f-strings to embed variables directly, avoiding concatenation.
Explore a Python 3 library project walkthrough that decodes a corrupted catalog, fixes The Great Gatsby, builds a book list, and prints every other letter of the last entry.
As our world becomes more and more technologically advanced, we become immersed in a digital era. In these modern times, it is important to learn how to code, and especially important for students to learn as the possibilities surrounding code are infinite. Especially with the current advent of machine learning, Python is one of the easiest and most powerful languages available, and having it in your arsenal is an excellent tool in this day and age. This is Part 2 of a 4 part course in Python.