Načítání úlohy…
A reversed sequence is like a countdown before a launch: the numbers go from bigger to smaller. Write reverse_seq, which takes a natural number n and returns a list of numbers from n down to 1, inclusive. The order must be strictly descending.
5[5, 4, 3, 2, 1]1[1]3[3, 2, 1]def reverse_seq(n: int) -> list[int]:
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit se5[5,4,3,2,1]1[1]3[3,2,1]9[9,8,7,6,5,4,3,2,1]2[2,1]10[10,9,8,7,6,5,4,3,2,1]