Programming for Social Scientists
POL 42340 Programming for Social Scientists
Monday, 3-5 pm, Q279; continuously on Discord
You should install Python and Visual Studio Code on your own computer. Please check the installation instructions and the online community for the module will have a channel dedicated to installation challenges.
Overview of all the main Python code you will learn during this course: Python commands
| 1 | Variables and functions | slides | homework | Videos: what is programming? | using git | variables and functions | random numbers Software: Python | Visual Studio Code | git |
| 2 | Conditions and flow | slides | homework | Videos: conditional expressions External links: assert statements |
| 3 | Loops and lists | slides | homework | Videos: lists | dictionaries | loops |
| 4 | Working with text (and MCQ!) | slides | homework | Videos: strings and user input External links: string functions | formatters |
| 5 | Types, classes, and object-oriented programming | slides | homework | Videos: object-oriented programming |
| 6 | Class inheritance | slides | homework | |
| 7 | Testing, debugging, and exception handling (and MCQ!) | slides | (continued) | Videos: exceptions |
| 8 | Reading and writing text files | slides | homework | Videos: working with files |
| 9 | Databases, JSON and CSV files | slides | homework | |
| 10 | Putting it all together (and MCQ!) | slides | homework |