강의

멘토링

커뮤니티

Inflearn Community Q&A

jeju900290028352's profile image
jeju900290028352

asked

[New Revised Edition] Python Complete Guide for Coding Beginners

Programming Introduction - 02. Input and Variables

5번 강의 실습문제에서 질문있습니다.

Written on

·

61

0

그 이름이랑 레벨등을 변수에 저장해서 출력하는 문제였는데요. 거기서 print할때 강의에선 +를 쓰셨는데

print("이름-" + name)

저는 +안쓰고 그냥

print("이름-",name)

 이런식으로 적었는데 문제가 있을까요..?

python

Answer 1

0

startcoding님의 프로필 이미지
startcoding
Instructor

그렇게 하셔도 됩니다!

다만 print("이름-",name) 이렇게 썼을때 띄어쓰기가 하나 들어간다는 특징이 있어요 ㅎㅎ

jeju900290028352's profile image
jeju900290028352

asked

Ask a question