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

ㅌㅂ가 숫자만 입력을 받나요 아니면 문자열도 입력을 받을 수 있나요? #38

Closed
kdh8219 opened this issue Feb 26, 2022 · 8 comments

Comments

@kdh8219
Copy link
Contributor

kdh8219 commented Feb 26, 2022

숫자만 입력을 받는다면 문자열이 입력되었을때 에러는 뭘로 해야 할까요?

@sujang958
Copy link
Member

둘 다 입력 받습니다

@sangchoo1201
Copy link
Contributor

엥 그러면 예를 들어 "1"을 입력하면 이게 숫자인지 문자열인지 구분은 어떻게 하나요?

@kdh8219
Copy link
Contributor Author

kdh8219 commented Feb 27, 2022

아 상추님 파이썬3 구현체 입력에 문자입력하면 오류나면서 멈추던데요

@sangchoo1201
Copy link
Contributor

그렇다면 숫자 입력과 문자 입력을 구분하는 기준은 무엇인가요

@kdh8219
Copy link
Contributor Author

kdh8219 commented Feb 27, 2022

그리고 변수에 문자를 1글자만 담을 수 있지 않나요?

@kdh8219
Copy link
Contributor Author

kdh8219 commented Feb 27, 2022

그렇다면 문자입력과 숫자입력을 구분하는것은 어떤가요?
엇쩔티비/젓쩔티비라던지

@kdh8219
Copy link
Contributor Author

kdh8219 commented Feb 28, 2022

image

@kdh8219 kdh8219 closed this as completed Feb 28, 2022
@chul0721
Copy link
Member

"않는 문서" => "않는 문자"
오타 정정합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants