Page not loading? Try clicking here.
Placeholder

#5251
Interactive

초급파이썬 입출력 25 1s 4MB

Problems

print()의 옵션 sep과 end를 배워보았다.

이 둘은 따로 하나씩 사용이 가능하지만, print("", sep=" ", end="\n")와 같이 동시에 함께 사용도 가능하다.

 

문자를 세개 입력받아 두 번째 문자는 sep옵션으로, 세 번째 문자는 end옵션으로 설정하여 첫 번째 문자를 두 번씩 두 줄 출력하시오.


Example

a b c
abacabac


You must sign in to write code.