Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STEP 3. 반복 #4

Open
12 tasks done
letsjo opened this issue Mar 29, 2023 · 0 comments
Open
12 tasks done

STEP 3. 반복 #4

letsjo opened this issue Mar 29, 2023 · 0 comments
Assignees
Labels
STEP 단계

Comments

@letsjo
Copy link
Owner

letsjo commented Mar 29, 2023

단계 설명

for, while 등의 반복문을 사용해 봅시다.

문제 / 코드보기

새로 알게된 점

  • 문자열 곱하기에 숫자는 int 타입이여야 한다.
  • int 타입을 연산자 /로 나누면, float 타입으로 반환된다.
  • 입력값이 많이 들어올 땐 input = sys.stdin.readline 을 사용하면, 시간을 줄일 수 있다. (단, 이 때는 개행문자까지 같이 입력을 받기 때문에, rstrip()을 추가로 해주는 것이 좋다.)
  • inputs = sys.stdin.readlines() 를 이용하면 input 값 전체를 한 번에 읽어와 line 별로 list 로 만들어 준다.
  • try: - except: - 를 이용해서 EOF를 끝낼수도 있다.
@letsjo letsjo added the STEP 단계 label Mar 29, 2023
@letsjo letsjo self-assigned this Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
letsjo added a commit that referenced this issue Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STEP 단계
Projects
None yet
Development

No branches or pull requests

1 participant