ch = 'a'
if ch.islower():
print(ch, "은 소문자입니다.")
else:
print(ch, "은 소문자가 아닙니다.")
ch = 'G'
if ch.isupper():
print(ch, "은 대문자입니다.")
else:
print(ch, "은 대문자가 아닙니다.")
ch = '7'
if ch.isdigit():
print(ch, "은 숫자입니다.")
else:
print(ch, "은 숫자가 아닙니다.")
# 사용자에게 한 글자를 입력받아,
# 대문자이면 "대문자입니다."
# 소문자 이면 "소문자 입니다."
# 숫자이면 "숫자 입니다."
# 이외에는 "알수없는 기호입니다."
# 출력하는 프로그램을 작성하시오.
To embed this project on your website, copy the following code and paste it into your website's HTML: