Logo

Lessons

  • Lesson 0: Configuring your computer
  • Lesson 1: Welcome and Introduction to JupyterLab
  • Lesson 2: Basic command line skills
  • Lesson 3: Variables, operators, and types
  • Lesson 4: More operators and conditionals
  • Lesson 5: Lists and tuples
  • Lesson 6: Iteration
  • Lesson 7: Introduction to functions
  • Lesson 8: String methods
  • Lesson 9: Dictionaries
  • Lesson 10: Packages and modules
  • Lesson 11: File I/O
  • Lesson 12: Style
  • Lesson 13: Introduction to Pandas
  • Lesson 14: Tidy data and split-apply-combine
  • Lesson 15: Making plots
  • Lesson 16: High level plotting
  • Lesson 17: Introduction to Numpy and Scipy
  • Lesson 18: Plotting time series and generated data
  • Lesson 19: Version control with Git
  • Lesson 20: Errors and Exception handling
  • Lesson 21: Testing and test-driven development
  • Lesson 22: Examples of TDD
  • Lesson 23: High level plotting with HoloViews
  • Lesson 24: Dashboards
  • Lesson 25: Survey of other packages and languages
  • Lesson 26: Bootcamp recap

Exercises

  • Exercise 1
  • Exercise 2
  • Exercise 3
  • Exercise 4
  • Exercise 5
  • Exercise 6
  • Exercise 7
  • Exercise 8
  • Exercise 9
  • Exercise 10
  • Exercise 11

Exercise solutions

  • Exercise 1 solutions
  • Exercise 2 solutions
  • Exercise 3 solutions
    • Exercise 3.1: Using string methods
    • Exercise 3.2: Longest common substring
    • Exercise 3.3: RNA secondary structure validator
  • Exercise 4 solutions
  • Exercise 5 solutions
  • Exercise 6 solutions
  • Exercise 7 solutions
  • Exercise 8 solutions
  • Exercise 9 solutions
  • Exercise 10 solutions
  • Exercise 11 solutions

Schedule

  • Schedule overview
  • Daily schedule (all times PDT)

Resources

  • Scientific Python distribution
  • Online instruction
  • Books
Programming Bootcamp
  • View page source

Exercise 3 solutions¶

  • Exercise 3.1: Using string methods
  • Exercise 3.2: Longest common substring
  • Exercise 3.3: RNA secondary structure validator
Next Previous

Last updated on Aug 07, 2020.

© 2020 Justin Bois. With the exception of pasted graphics, where the source is noted, this work is licensed under a Creative Commons Attribution License CC-BY 4.0. All code contained herein is licensed under an MIT license.

This document was prepared at Caltech with financial support from the Donna and Benjamin M. Rosen Bioengineering Center.



Built with Sphinx using a theme provided by Read the Docs.