Please use the order function to count the number of uppercase and lowercase letters in the string, Korean, and other characters.
python
If uf8, it has the following range:
English capital letters: 0x41-0x5A
Lowercase letters: 0x61-0x7a
Korean range: AC00-D7AF
Hangul falls into the above range, so you can see the following results.
str = 'Ganadara'
for c in str:
print(hex(ord(c)))
0xac00
0xb098
0xb2e4
0xb77c
Please try English characters, and you can compare each character and count.
764 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
554 Who developed the "avformat-59.dll" that comes with FFmpeg?
551 GDB gets version error when attempting to debug with the Presense SDK (IDE)
554 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.