Python programmers 자연수 뒤집어 배열로 만들기
2023. 8. 25. 21:08ㆍPython
자연수 뒤집어 배열로 만들기
def solution(n):
arr = list(str(n))
arr.reverse()
return list(map(int,arr))
'Python' 카테고리의 다른 글
| Python Programmers 하샤드 수 (0) | 2023.08.29 |
|---|---|
| Python programmers 콜라츠 추측 (0) | 2023.08.29 |
| Python str, fstr (0) | 2023.08.14 |
| Python split, int (0) | 2023.08.14 |
| Python enumerate (0) | 2023.08.14 |