LearnPy Hub
← NumPy problems
Easy

zeros, ones, full

Read n and print np.zeros(n), np.ones(n) and np.full(n, 7) as integer lists on three lines.

Input

One integer n ≥ 1.

Output

Three lists.

Sample 1

Input
3
Output
[0, 0, 0]
[1, 1, 1]
[7, 7, 7]

Sample 2

Input
1
Output
[0]
[1]
[7]
solution.py
Output appears here
zeros, ones, full · Python practice problem · LearnPy Hub