Practise exercises from the book A Byte of Python: Swaroop CH