LearnPy Hub
← Comprehensions problems
Medium

Table as Lists

Read n and print an n×n multiplication table as a list of lists.

Input

One integer n ≥ 1.

Output

A list of lists.

Sample 1

Input
3
Output
[[1, 2, 3], [2, 4, 6], [3, 6, 9]]

Sample 2

Input
1
Output
[[1]]
solution.py
Output appears here
Table as Lists · Python practice problem · LearnPy Hub