Skip to Content
Python 소개, 제 2판
book

Python 소개, 제 2판

by Bill Lubanovic
May 2025
Intermediate to advanced
630 pages
8h 17m
Korean
O'Reilly Media, Inc.
Content preview from Python 소개, 제 2판

부록 D. 연습 문제에 대한 답변

1. 파이의 맛

1.1아직 컴퓨터에 Python 3을 설치하지 않았다면 지금 설치하세요. 컴퓨터 시스템에 대한 자세한 내용은 부록 B를 참조하세요.

1.2 Python 3 대화형 인터프리터를 시작합니다. 자세한 내용은 부록 B에 나와 있습니다. 자신에 대한 몇 줄과 >>> 로 시작하는 한 줄이 인쇄되며, 이것이 Python 명령을 입력하라는 프롬프트입니다.

1.3 인터프리터를 조금 가지고 놀아보세요. 계산기처럼 사용하여 다음과 같이 입력하세요:8 * 9. 결과를 보려면 Enter 키를 누르세요. Python은 72 을 출력합니다.

1.447 이라는 숫자를 입력하고 Enter 키를 누릅니다. 다음 줄에 47이 출력되었나요?

1.5 이제 print(47) 을 입력하고 Enter 키를 누릅니다. 다음 줄에도 47이 출력되었나요?

2. 데이터: 유형, 값, 변수 및 이름

2.1변수 prince 에 정수 값 99 을 할당하고 인쇄합니다.

2.2 5 값은 어떤 유형입니까?

2.3 2.0 값은 어떤 유형인가요?

2.4 표현식은 어떤 유형인가요 5 + 2.0?

3. 숫자

3.1한 시간에 몇 초인가요? 대화형 통역기를 계산기로 사용하여 1분의 초 수(60)에 한 시간의 분 수( 60)를 곱하세요.

3.2 이전 작업의 결과(시간당 초)를seconds_per_hour 라는 변수에 할당합니다.

3.3 하루는 몇 초인가요? seconds_per_hour 변수를 사용하세요.

3.4 하루 초를 다시 계산하되 이번에는 결과를seconds_per_day 이라는 변수에 저장합니다.

3.5 seconds_per_dayseconds_per_hour 로 나눕니다. 부동 소수점(/) 나누기를 사용합니다.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Python 학습, 제 5판

Python 학습, 제 5판

Mark Lutz
fastai와 파이토치가 만나 꽃피운 딥러닝

fastai와 파이토치가 만나 꽃피운 딥러닝

박찬성, 김지은, 제러미 하워드, 실뱅 거거

Publisher Resources

ISBN: 9798341653764