1. Getting Started
Lecture notes
Getting Started
- Try out Google Colab [oratory]
- This sets up a small virtual environment for you on the cloud
- Pros:
- Uniform environment for everyone
- Good to interweave text and code
- Powerful backend, with possibility to expand
- Cons:
- Must have internet connectivity
- Tied to Google, encourages dependence
- Periodically resets
- Slightly different experience to using an interpreter or saving a program in a file
Practical work
How we will proceed
10+ weeks is not very long, so we need to use our time wisely. I want you to spend as much time coding as possible!
- First read the assigned chapter of the text book
- It is good to have a python environment open with you as you read, and try the code
This should take about 30 minutes to read and test the code
- Try the problems labelled Before class before class
This should take about 30 minutes: if it takes much longer let me know
- We start each class with you asking me questions about the readings, and showing me your code.
- We then go through the Practical work together
- When appropriate we talk about assignments
I am also available for individual consultation, email me!
Summary
- We set up a Python environment
- We learned how to work with variables: how to use
descriptive variable names and resolve name errors and syntax errors when
they arise.
- We learned what strings are and ways to change them
- We learned about fstrings and whitespace
- We started working with integers and floats, and learned some
of the ways you can work with numerical data.
- We learned about using comments to make your code easier for you and others to read.
- We read about the philosophy of keeping your code as simple as
possible, whenever possible.
LAC: Language and the Computer Francis Bond.