
Define and print variables in Python primer course, exploring numbers and strings, learn how type checks reveal whether a value is an int or a string, and study reassignment.
Explore lists in the Python primer, learning how to declare and initialize lists, access elements with zero-based indexing, determine length, and handle index out of range errors.
Learn to use the zip function to iterate two or more lists in parallel, with list comprehension, then review nested lists indexing and the range function for generating sequences.
Explore how sets hold unique values, create them with curly braces, convert lists to sets for uniqueness, and use union, intersection, disjoint checks, and remove operations.
Explore python list operations through steps: create and modify lists with append, extend, remove, and pop; use range, indexing, list comprehensions, and analyze set overlap and divisible by three.
compare the while loop to a for loop and explain its termination condition. warn about infinite loops and show examples that print values as they iterate.
Define and call basic python functions using def, colon, and indentation; reuse code with named functions like say hello, print world, and call them multiple times.
Learn how to use arguments to enrich functions in Python, enabling different interactions by passing single or multiple values, and understand why missing arguments cause errors.
Define a class as a blueprint, then instantiate objects by calling the class to create instances like Carl and Jeff, illustrating initialization and basic class usage.
This course is the first in a series of courses from FinanceAndPython. It works through the basics of python and how to write your first scripts. Upon completion you will be able to move on to some of the more advanced courses such as Basic Finance, Data Science, Investments, and more! The way that this course is taught is through a learning by doing model. You will be able to follow along as coding is done live in jupyter notebooks. Problem sets are also provided with solutions for each of the sections and a github repository with all of the course notebooks. To succeed in this course it is recommended to code along and begin experimenting with your own code.
The structure of the course is:
1. Variables: The basic building blocks of programming which hold information
2. If Statements & Boolean Values: Adding in ways to understand truth in statements and act on them
3. Lists, Sets and Tuples: Data structures for holding variables
4. Loops: Building intuition of how to iterate over sets of data
5. Functions: Creating repeatable patterns of code
6. Dictionaries: Branching out to a new data structure
7. Assertions and Docstrings: Building defensive and well explained code
8. Classes: Creating templates of objects
9. Matplotlib: Visualizing data