Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 752 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 752 Bytes

Code from Week 8

A repository containing the examples from the worksheet and the lectures.

Contents

  • 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.