코드업(CodeUp) 풀이/Python 기초 100제
[코드업 Python 기초 100제] - 6017. 문장 1개 입력받아 3번 출력하기
yewonnie
2022. 1. 25. 01:07
문제 설명
정수(integer), 실수, 문자(character), 문자열(string) 등 1개만 입력받아 한 줄로 3번 출력해보자.
입력
1개의 데이터가 입력된다.
출력
공백을 두고 3번 출력한다.
입력 예시
computer science
출력 예시
computer science computer science computer science
My code
a = input()
print(a,a,a)
Answer
s=input()
print(s, s, s)
Code Review
1개의 데이터를 입력 받아 print 함수를 이용하여 공백을 두고 3번 출력되도록 해주었습니다.