강의

멘토링

커뮤니티

Inflearn Community Q&A

gojinajina4003's profile image
gojinajina4003

asked

Getting Started with Programming: Introduction to Python (Inflearn Original)

How to use Python Print (1-2)

format 명령어

Written on

·

261

0

print ('one' , 'two') 로 입력해도 같은 결과를 출력할 수 있지만 format 명령어를 사용하는데 는 이유가 있을 텐데 이와 관련된 설명이 없어서 궁금합니다.

python

Answer 1

0

niceman님의 프로필 이미지
niceman
Instructor

formatting을 활용하면 특정 케이스에 원하는 데이터 형식으로 값을 출력할 수 있습니다.

또한, 가독성이 좋아지는 효과도 얻을 수 있습니다.

gojinajina4003's profile image
gojinajina4003

asked

Ask a question