-
Notifications
You must be signed in to change notification settings - Fork 2
[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
base: main
Are you sure you want to change the base?
Conversation
helloworld.py
Outdated
| if __name__ == '__main__': | ||
| print('Hello, World!') No newline at end of file | ||
| user_name = input('What is your name? ') | ||
| print('Hello ' + user_name + '!') No newline at end of file |
There was a problem hiding this comment.
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 방법에 대한 스터디를 해보았습니다
There was a problem hiding this comment.
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
| user_name = input('What is your name? ') | ||
| print('Hello ' + user_name + '!') No newline at end of file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
파이썬에 익숙하지 않은 분들을 위해 주석을 추가하는 건 어떨까요?
| user_name = input('What is your name? ') | |
| print('Hello ' + user_name + '!') | |
| # 사용자의 이름을 입력 받는다 | |
| user_name = input('What is your name? ') | |
| # 사용자의 이름과 함께 인사를 출력한다 | |
| print('Hello ' + user_name + '!') |
관련 이슈 (Related Issues)
변경 사항 (Details of Changes)
helloworld.py실행시 유저의 이름을 입력받습니다테스트 방법 (How to Test)
helloworld.py를 실행하고 유저의 이름을 한 줄에 입력합니다리뷰 요청 사항 (Request for Review)
기타 참고 사항 (Additional Context)