cw2.py

Download cw2.py file

## Introductory Python Programming
## Coursework 2
## Brandon Bennett

## To complete this coursework, you must replace the line "pass"
## in the following function definitions, with code that correctly
## computes the required result from given input parameters, according
## to the specification given on the coursework web-site.


## Q1
## Test whether string1 is an anagram of string2.
## Return a Boolean value (True or False)
def anagrams( string1, string2 ):
    pass

## Q2
## Test whether string is an English word.
## Return true
def is_english_word( string ):
    pass

## Q3
def find_all_anagrams( string ):
    pass


## Q4
## Assess the strength of a password according to given rules.
def password_strength( string ):
    pass


## Q5
## Return a list with the mumbers of each denomination of British coins
## required to pay a given amount.
def pay_with_coins( amount ):
    pass


## Q6
## Find a way of paying a certain amount from a given "pocket" of coins.
def pay_with_coins_from_pocket( amount, pocket ):
    pass