This lesson introduces Jupyter notebooks and Python for absolute beginners. If you are completely new to text analysis, this is the place to start. This lesson describes operators, expressions, data types, variables, and basic functions.
This lesson describes the basics of flow control statements including:
- Boolean values
- Boolean operators
- Comparison operators
if
statementselse
statementselif
statementswhile
andfor
loop statements- Handling errors with
try
andexcept
This lesson describes the basics of lists and dictionaries including:
- The
in
andnot in
operators - Lists
- List methods (
index()
,append()
,insert()
,sort()
) - Dictionaries
- Dictionary methods (
update()
,keys()
,values()
,items()
,get()
)
Note: The Python Basics Series contains two additional notebook templates. See them and many more Constellate lesson templates in our GitHub repository.
We will show how to teach your own form of Python Basics at your institution using GitHub.