Skip to content

pypr-2021/table-of-contents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 

Repository files navigation

Python Programming - Table of contents

Week Videos Tutorial sheet Workshop task
Week 1: Getting started with Python
  • Introduction: Python and Jupyter
  • Variables and objects
  • Basic object types: int, float, str, bool
  1. "Python Programming"?...
  2. How to get the Week 1 tutorial sheet
  3. Python basics: print(), variables, and objects
Tutorial sheet Pair programming
Week 2: Lists, loops, and functions
  • Type-casting and duck-typing
  • Containers: lists, ranges
  • for loops
  • Writing your own functions
  1. Lists, loops, and functions
  2. Code-along: paying interest to a bank account
Code available here
Tutorial sheet Fun with sequences
Week 3: Conditional statements, more loops, and code review
  • Conditional statements: if-elif-else
  • Nested loops and while loops
  • Code review and debugging essentials
  1. Conditional statements, while loops, and error traces
  2. Code-along: the bin packing problem
Code available here
Tutorial sheet Code review
Week 4: Numpy, plotting, and reading/writing text files
  • Namespaces and scope
  • Numpy arrays, linear algebra and complex numbers
  • Plotting with matplotlib
  • Reading and writing text files
  1. Namespaces, scope, NumPy, and reading/writing a text file
  2. Code-along: Maths with NumPy
  3. Search and understand documentation
Code available here
Tutorial sheet NumPy, plotting, and input/output to a file
Week 5: Better plots, docstrings, and algorithm design
  • Label and customise plot appearance
  • Writing good docstrings
  • The algorithm design process
  • Problem-solving examples: the post office problem, the bisection algorithm
  1. Structured programming and algorithm design
  2. Code-along: the bisection algorithm
  3. Docstrings and doctest
Code available here
Tutorial sheet Sorting and efficiency
Week 6: More containers, iterators and generators
  • Tuples
  • Dictionaries
  • Comprehensions
  • Iterators
  • Generators
  1. List comprehensions, tuples and dictionaries
  2. Iterables, iterators and generators
  3. Benchmarking and profiling
Code available here
Tutorial sheet Code review
Week 7: SciPy and Pandas
  • SciPy for statistics and optimisation
  • pandas dataframes to manipulate data
  1. SciPy and pandas
  2. Code-along: a word cloud from your feedback
  3. Jupyter notebooks and git/GitHub
Tutorial sheet Zipf's law
Week 8: More pandas, Seaborn
  • Dealing with missing data and text data with pandas
  • Fancy visualisations with seaborn
No videos this week Tutorial sheet Edinburgh cycle hire data
Week 9: Object-oriented programming
  • Classes and objects
  • Defining your own classes
  • Attributes and methods
  • Special methods and operator overloading
  • Inheritance
  1. Object-oriented programming
  2. Code-along: creating a "Polynomial" class
Tutorial sheet Code review
Week 10 A few more pandas/seaborn video examples.
  1. pandas 1: Grouping dataframes
  2. pandas 2: Reshaping dataframes
  3. pandas 3 + seaborn: Visualising data in "long" form
  4. Edinburgh bike data: Average duration and distance
  5. Edinburgh bike data: Most common starting station
  6. Edinburgh bike data: Most common time of day
Code available here
No tutorial sheet No workshop task

About

Python Programming - Table of contents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published