Notice
Recent Posts
Recent Comments
Link
«   2025/03   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31
Tags
more
Archives
Today
Total
관리 메뉴

archive

2-2 표현식 실습 본문

Python/모두를 위한 파이썬

2-2 표현식 실습

안정민 2022. 7. 18. 11:08

1) 미국 층계 계산과 유럽 층계 계산 호환식

 

소스코드

x = int(input("Enter the floor in europe: "))
x=x+1
print("American floor: ", x)

 

실행 결과

Enter the floor in europe: 12
American floor:  13

 

 

'Python > 모두를 위한 파이썬' 카테고리의 다른 글

5-1 함수 실습  (0) 2022.08.03