코드
# 입력: 16진 정수 1개가 입력
# 출력: 8진수 형태로 출력
a=input()
n=int(a,16)
print('%o' %n)
실행결과
'Programming Study > Python' 카테고리의 다른 글
[CodeUp-python] 기초 100제 #6031 (0) | 2023.01.27 |
---|---|
[CodeUp-python] 기초 100제 #6030 (0) | 2023.01.27 |
[CodeUp-python] 기초 100제 #6028 (0) | 2023.01.27 |
[CodeUp-python] 기초 100제 #6027 (0) | 2023.01.26 |
[CodeUp-python] 기초 100제 #6026 (0) | 2023.01.26 |