#!/usr/bin/env python3 for row in [[x*y for x in range(1,10)] for y in range(1,10)]: print(", ".join(map(lambda x: "{:3}".format(x), row)))