Practical 02

Synopsis

Practical 2 of Fundamentals of Programming COMP1005/5005

Contents

README - readme file for Practical 2 strings1.py - read in a string and print it in reverse using a loop and method call strings2.py - read in a string, turn to upper case and duplicate, and print every second character and print every second character minus first and last characters bucket1.py - use a python list for items in a bucket list bucket2.py - bucket list builder assorted.py - selecting random biscuits from a pack cointoss.py - simulate tossing a coin multiple times

Extention: bingoCard.py - generates a bigo card with random numbers diceroll.py - simulate rollinging a dice multiple times myDiceroll.py - simulate rollinging a dice multiple times (my version) assorted.py - selecting random biscuits from a pack bingoCard.py - generates a bigo card with random numbers (testing different method) triangle.py - work out area of triangle

Dependencies

none

Version information

<today’s date> - initial version of Practical 2 programs