Nalaganje naloge…
Number places let you pull out individual digits without making the task complicated. Write a function tens_digit that takes a list of non-negative numbers nums. For each number, find its digit in the tens place and collect those digits in a new list.
[12, 5, 234][1, 0, 3][3, 4, 5][0, 0, 0][20, 99, 100][2, 9, 0]def tens_digit(nums: list[int]) -> list[int]:
Prijavite se za ogled zgodovine oddaj
PrijavaPrijavite se za uporabo mentorja UI
Prijava[12,5,234][1,0,3][3,4,5][0,0,0][20,99,100][2,9,0][][][10][1][12,5,234,12][1,0,3,1]