University home »
Faculty of Science »
Department of Computer Science »
Courses » COMPSCI 101 SS C » Lectures »
Computer Science
Lectures: COMPSCI 101 Summer School, 2020
Lecture slides
Slides used in lectures will be provided here.
We will try to have these slides posted a day before (or on the day of) each lecture.
Week 6
Top
- Lecture 27 - Using the Python interpreter, Python sequences
- 1 slide per sheet
- 4 slides per sheet
- L27Code.zip (Example program from Lecture 27)
- L27Answer.zip (Solution)
- Lecture 28 - Docstrings, Doctests
- Lecture 29 - Exam Revision
Week 5
Top
- Lecture 24 - Graphical User Interface (GUI), tkinter, using the Canvas widget to draw shapes (3rd February)
- 1 slide per sheet
- 4 slides per sheet
- L24Code.zip (Example program from Lecture 24)
- L24Answer.zip (Solution)
- Lecture 25 Using the Canvas widget to draw a grid of shapes (4th February)
- 1 slide per sheet
- 4 slides per sheet
- L25Code.zip (Example program from Lecture 25)
- L25Answer.zip (Solution)
- Lecture 26 Test2 Revision (5th February)
- 1 slide per sheet
- 4 slides per sheet
- L26.py (Solution)
Week 4
Top
- Lecture 19 - Open files, read from files, write to files, close files (28th January)
- Lecture 20 - Maintaining a text file of information (29th January)
- 1 slide per sheet
- 4 slides per sheet
- L20_GoShopping.py (The GoShopping skeleton file)
- L20_GoShopping_Solution.py (The GoShopping solution file)
- stock.txt
- Lecture 21 - Dictionaries 1 (29th January)
- 1 slide per sheet
- 4 slides per sheet
- Story.txt (text file used in the lecture example)
- Story2.txt (text file used in the lecture example)
- ProcessStory.py
- Lecture 22 - Dictionaries 2 (30th January)
- Lecture 23 - Nested loops, passing mutable objects as parameters (31st January)
Week 3
Top
- Lecture 13 - Range function, for ... in ... range() loops (20th January)
- Lecture 14 - Lists (21st January)
- Lecture 15 - Updating the elements of a List, the split() method (22nd January)
- Lecture 16 - Slicing lists, list methods (22nd January)
- Lecture 17 - Assignment 3 (23rd January)
- Lecture 18 - Tuples (24th January)
Week 2
Top
- Lecture 7 - Defining functions 1 (13th January)
- Lecture 8 - Defining functions 2 - more practice defining functions, functions can call other functions, the scope of variables (14th January)
- Lecture 9 - Code tracing (15th January)
- Lecture 10 - Boolean expressions, if statements (15th January)
- Lecture 11 - if ... else statements, if ... elif statements, nested ifs (16th January)
- Lecture 12 - Loops, while loops (17th January)
Week 1
Top
- Lecture 1 - Introduction (6th January)
- Lecture 2 - Variables, program execution, doing calculations, print() (7th January)
- Once you have installed Python on your computer, download the following program and check that you are able to run this Python program: L02HelloWorld.py program
- Lecture 3 - Evaluating expressions, modulus and integer division operators, docstring and comments, the math module, developing a program in steps (8th January)
- Lecture 4 - Strings, objects, the len() function, string slicing (8th January)
- Lecture 5 - Manipulating strings, string methods, dot notation (9th January)
- Lecture 6 - Getting user input, converting between types, generating random numbers (10th January)
-
Related Programmes