IT공부/Python daily simple programing
자료형변환[Type casting] - 변환 값 출력하기
<Kokheejin>
2021. 8. 6. 22:35
출처
JetBrains Academy
Computer science > Programming languages > Python > Working with data > Data types and operations > Basic data types and operations > Type casting
지문
아래에 주어진 자료형 변환의 결과를 알맞게 짝 지으세요.
(1) int("10,0") - (4) 10
(2) float(10) - (3) "10.0"
(3) str(10.0) - (5) "10"
(4) int(10.3) - (1) ValueError
(5) str(10) - (2) 10.0
원문
Match each type casting with the result it produces.
(1) int("10,0") - (4) 10
(2) float(10) - (3) "10.0"
(3) str(10.0) - (5) "10"
(4) int(10.3) - (1) ValueError
(5) str(10) - (2) 10.0
Copyright
Copyright © 2021 JetBrains s.r.o. [JETBRAINS PRODUCT NAME - e.g Space ] and the [Space] logo are registered trademarks of JetBrains s.r.o.