The table of multiplication by M. (Python)