study the "A Byte of Python" by Swaroop, C. H.