MapleStory Finger Point Cute Line Smiley Blinking Hello Kitty Angel MapleStory Finger Point

๐Ÿ’Ž Python/Python_Code

หšโ‚Šโœฉโ€งโ‚Š ์ˆซ์ž, ์˜๋ฌธ, ํ•œ๊ธ€, ๊ธฐํƒ€ ๋ฌธ์ž ๊ฐœ์ˆ˜ ์„ธ๋Š” ํ”„๋กœ๊ทธ๋žจ - ํŒŒ์ด์ฌ for Beginner (2ํŒ) หšโ‚Šโœฉโ€งโ‚Š

HYEJU01 2024. 3. 29. 06:43

inStr,outStr = "", ""
Ucnt,Lcnt,Ncnt,Kcnt,cnt=0,0,0,0,0

inStr = input("๋ฌธ์ž์—ด => ")

for ch in inStr :
    if (ord(ch)>=ord("A") and ord(ch) <=ord("Z")):
        Ucnt += 1
    elif (ord(ch)>=ord("a") and ord(ch) <=ord("z")):
        Lcnt += 1
    elif (ord(ch)>=ord("0") and ord(ch) <=ord("9")):
        Ncnt += 1
    elif (ord(ch)>=ord("ใ„ฑ") and ord(ch) <=ord("ํžฃ")):
        Kcnt += 1
    else :
        cnt += 1
        


print("๋Œ€๋ฌธ์ž = %d" % Ucnt)
print("์†Œ๋ฌธ์ž = %d" % Lcnt)
print("์ˆซ์ž = %d" % Ncnt)
print("ํ•œ๊ธ€ = %d" % Kcnt)
print("๊ธฐํƒ€ = %d" % cnt)