This lesson teaches novice programmers to write modular code to perform data analysis using Python.
# Programming with Python
[![GitHub release][shields_release]][swc_py_releases]
[![Create a Slack Account with us][create_slack_svg]][slack_heroku_invite]
[![Slack Status][slack_channel_status]][slack_channel_url]
An introduction to Python for non-programmers using inflammation data.
## About the Lesson
This lesson teaches novice programmers to write modular code to perform data analysis
using Python. The emphasis, however, is on teaching language-agnostic principles of
programming such as automation with loops and encapsulation with functions,
see [Best Practices for Scientific Computing][best-practices] and
[Good enough practices in scientific computing][good-practices] to learn more.
The example used in this lesson analyses a set of 12 files with simulated inflammation
data collected from a trial for a new treatment for arthritis. Learners are shown
how it is better to automate analysis using functions instead of repeating analysis
steps manually.
The rendered version of the lesson is available at:
.
This lesson is also available in [R][R] and [MATLAB][MATLAB].
## Episodes
| # | Episode | Time | Question(s) |
|--:|:---------|:----:|:------------|
| 1 | [Python Fundamentals][episode01] | 30 | What basic data types can I work with in Python? How can I create a new variable in Python? Can I change the value associated with a variable after I create it? |
| 2 | [Analyzing Patient Data][episode02] | 60 | How can I process tabular data files in Python? |
| 3 | [Visualizing Tabular Data][episode03] | 50 | How can I visualize tabular data in Python? How can I group several plots together? |
| 4 | [Repeating Actions with Loops][episode04] | 30 | How can I do the same operations on many different values? |
| 5 | [Storing Multiple Values in Lists][episode05] | 30 | How can I store many values together? |
| 6 | [Analyzing Data from Multiple Files][episode06] | 20 | How can I do the same operations on many different files? |
| 7 | [Making Choices][episode07] | 30 | …