강의

멘토링

커뮤니티

Inflearn Community Q&A

carpe23554's profile image
carpe23554

asked

Python programming that even beginners can learn in one breath

Let's learn about logical types and comparison/logical operators.

질문

Written on

·

227

1

한글로 된  소스 코드도 참, 거짓으로 나타낼 수 있나요?

예를 들어 'ㄱ' < 'ㄴ'을 때 결과가 나오나요?

인프런 신규강의 (무료)python

Answer 1

1

pythonmento님의 프로필 이미지
pythonmento
Instructor

물론입니다. 모든 문자는 코드를 가지고 있고, 비교를 하면 코드 순서가 뒤에 있는 것이 더 크다고 나옵니다.

따라서,   'ㄱ' < 'ㄴ' 결과는 True 입니다. 직접 실행해 보셔요!

carpe2님의 프로필 이미지
carpe2
Questioner

감사합니다

carpe23554's profile image
carpe23554

asked

Ask a question