Skip to content

Latest commit

 

History

History
102 lines (83 loc) · 5.84 KB

README.md

File metadata and controls

102 lines (83 loc) · 5.84 KB

Programming with Python

GitHub release Create a Slack Account with us Slack Status

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 and Good enough practices in scientific computing 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: https://swcarpentry.github.io/python-novice-inflammation/.

This lesson is also available in R and MATLAB.

Episodes

# Episode Time Question(s)
1 Analyzing Patient Data 90 How can I process tabular data files in Python?
2 Repeating Actions with Loops 30 How can I do the same operations on many different values?
3 Storing Multiple Values in Lists 30 How can I store many values together?
4 Analyzing Data from Multiple Files 20 How can I do the same operations on many different files?
5 Making Choices 30 How can my programs do different things based on data values?
6 Creating Functions 30 How can I define new functions?
What’s the difference between defining and calling a function?
What happens when I call a function?
7 Errors and Exceptions 30 How does Python report errors?
How can I handle errors in Python programs?
8 Defensive Programming 30 How can I make my programs more reliable?
9 Debugging 30 How can I debug my program?
10 Command-Line Programs 30 How can I write Python programs that will work like Unix command-line tools?

Contributing

Travis Build Status

We welcome all contributions to improve the lesson! Maintainers will do their best to help you if you have any questions, concerns, or experience any difficulties along the way.

We'd like to ask you to familiarize yourself with our Contribution Guide and have a look at the more detailed guidelines on proper formatting, ways to render the lesson locally, and even how to write new episodes!

Maintainers

Lesson maintainers are Trevor Bekolay, Maxim Belkin, Anne Fouilloux, Valentina Staneva, Mike Trizna, and creator of Software Carpentry: Greg Wilson

Authors

A list of contributors to the lesson can be found in AUTHORS

License

Instructional material from this lesson is made available under the Creative Commons Attribution (CC BY 4.0) license. Except where otherwise noted, example programs and software included as part of this lesson are made available under the MIT license. For more information, see LICENSE.md.

Citation

To cite this lesson, please consult with CITATION