Table of contents
- Teachers: Hay Kranen and Jonas Moons
- The course on learn.hu.nl
- The master on learn.hu.nl
- Data-driven design Slack
- Deadline: Monday November 5th before 12:00 you hand in the five assignments on your Github account and as a zipfile on learn.hu.nl.
- Students and their Github accounts
For every week there is a Jupyter Notebook containing examples relating to the subjects of that week
- Lessons 1 & 2: Math, variables,
input(), comparisons, types,
if, string methods
- Lessons 3 & 4: Lists,
- Lessons 5 & 6: dicts,
json, f-strings, HTTP api's
- Lessons 7 & 8: Reddit /
- Lessons 9 & 10: Web scraping
These are optional exercises you can make during the lesson to test your knowledge. You don't need to submit these with the final assignment.
- Lesson 1: Myfitnesspal
- Lesson 2: Lovetest
- Lesson 3: Snacknames and spellchecker
- Lesson 4: Snacknames multidimensional, Sentence slicer and CSV reader
These are PDF versions of the slides i use during classes.
Resources and tips
Feel free to fork this file and add more resources!
- Extensive Python cheatsheet with examples
- A more minimal cheatsheet
- Datacamp Python basics
- A summary of the Python coding style
- String methods and functions
- Datacamp introduction to lists
- Working with JSON web API's
Git and the terminal
- Installing Git on Mac, Windows and Linux
- Basic terminal commands
- Basic Git commands
- Interactive Git tutorial
- How to use terminal on Windows without going crazy…
- Google and Stack Overflow are your friends. It’s not a shame to Google even really basic concepts. I have been programming for more than twenty years and i still Google really basic stuff every single day.
- Your code should be properly commented (use
#). Good commenting means you explain why you do something, not what you’re doing.
- Keep your code DRY: Do not Repeat Yourself. If you copy-paste code, you probably could use a function instead.
- Keep it tidy! Python is a language where indentation matters. This means that if you don’t format your code properly it won’t work.
- Make sure you all your code is correctly spelled. Python is very picky! If you write
if(note the capital) your code won’t work.
- If you don’t understand why something isn’t working, try to make an example that is as simple as possible to pinpoint the cause.
- Pay close attention to the error output you get when you run a command. Google it if you don’t understand it.
- Note that Python is case sensitive and most file systems are too. When you create a new file only use lowercase characters, no spaces (use the underscore
- Read all the comments in the examples i provide. 90% of the things asked in the assignments are already solved for you there.