University home »
Faculty of Science »
Department of Computer Science »
Courses » COMPSCI 101 S2 C » Lectures »
Computer Science
Lectures: COMPSCI 101 Semester 2, City Campus
Lecture Slides
Slides used in lectures will be provided here.
We will try to have lecture slides posted a day before (or on the day of) each lecture.
Week 11
Top
Date | Lecture Title | Handouts |
---|---|---|
19th Oct | Lecture 28 - Testing, docstrings for functions, doctests |
1 slide per sheet 4 slides per sheet Lecture code Solution |
Week 10
Top
Date | Lecture Title | Handouts |
---|---|---|
12th Oct | Lecture 25 - GUI's, using the Canvas widget |
1 slide per sheet 4 slides per sheet Lecture code Solution |
15th Oct | Lecture 26 - Drawing shapes using nested loops |
1 slide per sheet 4 slides per sheet Lecture code Solution |
16th Oct | Lecture 27 - Nested loops, passing objects as parameters |
1 slide per sheet 4 slides per sheet Lecture code Solution |
Week 9
Date | Lecture Title | Handouts |
---|---|---|
5th October | Lecture 22 - Dictionaries 1 |
1 slide per sheet 4 slides per sheet Lecture code |
8th October | Lecture 23 - Dictionaries 2 |
1 slide per sheet 4 slides per sheet Lecture code |
9th October | Lecture 24 - Sequences and the Python Interpreter |
1 slide per sheet 4 slides per sheet Lecture code |
Week 8
Date | Lecture Title | Handouts |
---|---|---|
28th September | Lecture 19 - Tuples |
1 slide per sheet 4 slides per sheet Lecture code |
1st October | Lecture 20 - File I/O 1 |
1 slide per sheet 4 slides per sheet Lecture code |
2nd October | Lecture 20 - File I/O 2 |
1 slide per sheet 4 slides per sheet Lecture code |
Week 7
Top
Date | Lecture Title | Handouts |
---|---|---|
21st September | Lecture 16 - The split() method, updating lists, lists as mutable |
1 slide per sheet 4 slides per sheet L16_00_recap_StartWithVowelMA.py L16_Slide05AttemptUpdateElements.py L16_Slide06UpdateElements.py L16_Slide07GiveOutput.py L16_Slide08EvenUp.py L16_Slide09Accumulate.py L16_Slide10ChangeToInt.py L16_Slide12SplitInputLine.py L16_Slide13NotDoneSplitOutput.py L16_Slide14CodeACodeB.py |
24th September | Lecture 17 - Slicing lists, some list methods, is operator vs. == |
1 slide per sheet 4 slides per sheet L17_Slide17GetNumbers.py L17_Slide21RemoveMultiples.py |
25th September | Lecture 18 - List Revision | 1 slide per sheet 4 slides per sheet |
Week 5
Top
Week 4
Date | Lecture Title | Handouts |
---|---|---|
17th August | Lecture 10 - Boolean expressions, if statements |
1 slide per sheet 4 slides per sheet L10Slide13.py L10Slide14.py |
20th August | Lecture 11 - if...else... statements, if...elif... statements |
1 slide per sheet 4 slides per sheet L11Slide07AddBonus.py L11Slide11Compare1.py L11Slide15Compare2.py L11Slide16IsLeapYear.py L11Slide18Horoscope.py |
21st August | Lecture 12 - Loops, while loops | 1 slide per sheet 4 slides per sheet L12Slide11GetDiceThrowsResult.py L12Slide12GetSumOfDivisors.py L12Slide14UserGuess.py |
Week 3
Date | Lecture Title | Handouts |
---|---|---|
10th August | Lecture 7 - Functions 1 | 1 slide per sheet 4 slides per sheet L07Slide18BoxesRequired.py |
13th August | Lecture 8 - Functions 2 | 1 slide per sheet 4 slides per sheet L08Slide23To25PrintDocket.py |
14th August | Lecture 9 - Code tracing | 1 slide per sheet 4 slides per sheet L09Slide05MadLibs.py Format of CompSci 101 programs. Lecture 9 Code Tracing Examples. |
Week 2
Date | Lecture Title | Handouts |
---|---|---|
3rd August | Lecture 4 - Python string objects |
1 slide per sheet 4 slides per sheet L04Slide25NameInStars.py |
6th August | Lecture 5 - dot notation, String methods |
1 slide per sheet 4 slides per sheet L05Slide17TaxCalculator.py |
7th August | Lecture 6 - User input, random numbers |
1 slide per sheet 4 slides per sheet L06Slide09_RemoveRandom.py L06Slide18_DiceThrow.py |
Week 1
Top
Date | Lecture Title | Handouts |
---|---|---|
27th July | Lecture 1 - Introduction | 1 slide per sheet 4 slides per sheet |
30th July | Lecture 2 - Variables | 1 slide per sheet 4 slides per sheet L02HelloWorld.py L02ConversionDollars.py |
31st July | Lecture 3 - Expressions | 1 slide per sheet 4 slides per sheet L03Slide16HeronsFormula.py L03Slide18Inheritance.py |
-
Related Programmes