Skip to content

Programming-M30299/week-8-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

The examples from week 8 worksheet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages