Backend
Algorithm
Project
codesche’s blog
/
Algorithm
/
[Python] 파이썬 기초
/
데이터 입력
Backend
Algorithm
Project
codesche’s blog
/
Algorithm
/
[Python] 파이썬 기초
/
데이터 입력
Share
Backend
Algorithm
Project
🐍
데이터 입력
userInputData
=
input
(
'키보드를 통해서 데이터를 입력하세요 \n'
)
print
(
userInputData
)
width
=
int
(
input
(
'가로 길이 입력 : '
)
)
height
=
int
(
input
(
'세로 길이 입력 : '
)
)
print
(
width
*
height
)
# 사각형 넓이
print
(
width
*
height
/
2
)
# 삼각형 넓이
Python
복사