Monkey Countdown

Imagine counting monkeys out loud: first, second, third, and so on up to the needed number. Write a function monkey_count that takes n and returns a list of numbers from 1 to n, inclusive. Start from 1, not from 0.

Примеры

Ввод
5
Вывод
[1, 2, 3, 4, 5]
Ввод
1
Вывод
[1]
Ввод
3
Вывод
[1, 2, 3]

Нужно реализовать

def monkey_count(n: int) -> list[int]:

Теги

listsarraymath
PostgreSQLv16

Čia bus kodo vykdymo rezultatas

Visible tests
1
Input
5
Expected[1,2,3,4,5]
2
Input
1
Expected[1]
3
Input
3
Expected[1,2,3]
4
Input
9
Expected[1,2,3,4,5,6,7,8,9]
5
Input
10
Expected[1,2,3,4,5,6,7,8,9,10]
6
Input
-10
Expected[]
Focus radio
Paused · SomaFM · Fluid