https://programmers.co.kr/learn/challenge_codes/117
def digit_reverse(n):
return [ int(i) for i in reversed(str(n))]
print("결과 : {}".format(digit_reverse(12345)));
'Python > Data Struc & algo' 카테고리의 다른 글
[Python] collections Counter를 이용한 합집합, 교집합, 차집합 구하기 (0) | 2018.05.13 |
---|---|
[Python] collections deque를 이용하여 리스트의 왼쪽에 요소 추가하기 (0) | 2018.05.13 |
[Python] To find the sum of odd numbers up to the number range of N. (파이썬 N의 수 범위까지의 홀수의 합 구하기) (0) | 2018.04.22 |
[Python] 홀수의 정수 리스트에서 중간값 추출하기 (1) | 2018.04.19 |
[Python] 회문 판별(palindrome) (0) | 2018.04.18 |
프로그래머스 Lv1 - x만큼 간격이 있는 n개의 숫자 (0) | 2018.04.18 |
프로그래머스 - Lv1 제일 작은 수 제거하기 (0) | 2018.04.17 |
[Python] collections - Counter 객체 (0) | 2018.04.13 |