Skip to content

[Feature] Hello World시에 유저 이름을 입력받아 함께 출력하기 #7

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dongyi-kim
Copy link
Contributor

관련 이슈 (Related Issues)

변경 사항 (Details of Changes)

  • helloworld.py 실행시 유저의 이름을 입력받습니다
  • 인사와 함께 입력받은 이름을 출력합니다

테스트 방법 (How to Test)

  • helloworld.py 를 실행하고 유저의 이름을 한 줄에 입력합니다

리뷰 요청 사항 (Request for Review)

  • 코드의 가독성이나 요청사항이 있으면 알려주세요

기타 참고 사항 (Additional Context)

  • 디자인, API 연동, 기타 참고해야 할 자료나 논의 내용이 있다면 링크나 설명을 남겨 주세요.

@dongyi-kim dongyi-kim self-assigned this Mar 23, 2025
helloworld.py Outdated
user_name = input('What is your name? ')
print('Hello ' + user_name + '!')
Copy link
Collaborator

@codemonster-naver codemonster-naver Mar 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

f-string formatter를 사용하는 것이 가독성의 관점에서 더 좋을 것 같습니다

추가적으로, 여러가지 Format String 방법에 대한 스터디를 해보았습니다

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codemonster-naver
아래 코드에서 해당 내용을 반영하였습니다 확인후 대화를 Resolve 해주세요
c829a9d

helloworld.py Outdated
Comment on lines 6 to 7
print('Hello ' + user_name + '!')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

파이썬에 익숙하지 않은 분들을 위해 주석을 추가하는 건 어떨까요?

Suggested change
user_name = input('What is your name? ')
print('Hello ' + user_name + '!')
# 사용자의 이름을 입력 받는다
user_name = input('What is your name? ')
# 사용자의 이름과 함께 인사를 출력한다
print('Hello ' + user_name + '!')

@dongyi-kim dongyi-kim linked an issue Mar 23, 2025 that may be closed by this pull request
2 tasks
@dongyi-kim dongyi-kim added enhancement New feature or request good first issue Good for newcomers labels Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] 더 재미있는 Hello World 만들기
2 participants