Pi Digits

A list can be built not only from calculations, but also from values that are already known. Write a function make_pi that takes a number n from 0 to 11. Return a list with the first n digits of pi: 3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5.

Примеры

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

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

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

Теги

listsarray
PostgreSQLv16

Taispeánfar toradh do chóid anseo

Visible tests
1
Input
1
Expected[3]
2
Input
2
Expected[3,1]
3
Input
3
Expected[3,1,4]
4
Input
0
Expected[]
5
Input
11
Expected[3,1,4,1,5,9,2,6,5,3,5]
6
Input
1000
Expected[3,1,4,1,5,9,2,6,5,3,5]
Focus radio
Paused · SomaFM · Fluid