Feladat betöltése…
This kind of list is often useful when preparing indices or looping over positions. Write a function fizz_array that takes a non-negative number n. Return a list of numbers from 0 to n - 1, inclusive, in the correct order.
4[0, 1, 2, 3]1[0]10[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]def fizz_array(n: int) -> list[int]:
Jelentkezz be a beküldési előzmények megtekintéséhez
BejelentkezésJelentkezz be az MI-mentor használatához
Bejelentkezés4[0,1,2,3]1[0]10[0,1,2,3,4,5,6,7,8,9]0[]2[0,1]11[0,1,2,3,4,5,6,7,8,9,10]