This lesson is an introduction to programming in Python for people with little or no previous programming experience. It uses plotting as its motivating example, and is designed to be used in both Data Carpentry and Software Carpentry workshops. This lesson references the Jupyter Notebook, but can be taught using a regular Python interpreter as well. Please note that this lesson uses Python 3 rather than Python 2.
|Setup||Dowload files used on the lesson.|
|Day 1||09:00||1. Running and Quitting||How can I run Python programs?|
|09:10||2. Variables and Assignment||How can I store data in programs?|
|09:30||3. Data Types and Type Conversion||
What kinds of data do programs store?
How can I convert one type to another?
|09:45||4. Built-in Functions and Help||
How can I use built-in functions?
How can I find out what they do?
What kind of errors can occur in programs?
|10:10||5. Lists||How can I store multiple values?|
|10:30||6. Morning Coffee||Break|
|10:45||7. For-Loops||How can I make a program do many things?|
|11:15||8. Writing Functions||How can I create my own functions?|
|11:45||9. Variable Scope||
How do function calls actually work?
How can I determine where errors occurred?
How can I use software that other people have written?
How can I find out what that software does?
|13:20||12. Conditionals||How can programs do different things for different data?|
|13:45||13. Reading Tabular Data into DataFrames||How can I read tabular data?|
|14:20||14. Pandas DataFrames||How can I do statistical analysis of tabular data?|
|14:50||15. Coffee Break||Break|
|15:05||16. Plotting||How can I plot my data?|
|15:50||17. Programming Style||
How can I make my programs more readable?
How do most programmers format their code?
How can programs check their own operation?
What have we learned?
What else is out there and where do I find it?
The actual schedule may vary slightly as the workshop progresses.