“”"
MATH20621 - Coursework 2
Student name:
Student id:
Student mail:
Do not change any part of this string except to replace
the with your name, id and university email address.
“”"
from random import random
Problem 1
def new_deck():
TODO: replace ‘pass’ with your code for problem 1
Problem 2
def riffle(d):
TODO: replace ‘pass’ with your code for problem 2
Problem 3
def deal(d, n):
TODO: replace ‘pass’ with your code for problem 3
Problem 4
def hand_string(h):
TODO: replace ‘pass’ with your code for problem 4
main() function for all the testing
def main():
TODO: add any tests of your own here.