A repository containing the examples from the worksheet and the lectures.
house.py
- This file defines a program that draws a house with a customizable door colour and window light status. The user is prompted to input the door colour and whether the lights are on or off.tennis.py
- This file defines a program that simulates a tennis match between two players. The user is prompted to input the probability of winning a point and the number of games to simulate. The program then simulates the games and outputs the number of wins and the proportion of wins for the player..gitignore
- A file telling git to ignore certain files (e.g..pyc
files). You do not need to worry about this file for now.