instr, outstr = '', ''
ch = ''
count, i = 0, 0
instr = input('문자열을 입력하세요: ')
count = len(instr)
for i in range(0, count):
    ch = instr[i]
    if (ord(ch) >= ord('A')) & (ord(ch) <= ord('Z')):
        newCh = ch.lower()
    elif (ord(ch) >= ord('a')) & (ord(ch) <= ord('z')):
        newCh = ch.upper()
    else:
        newCh = ch
    outstr += newCh
print('변환 결과: %s' % outstr)

76ce49db78edd9b40f588a8a60d8c4e621682998
<mask token>

<mask token>
for i in range(0, count):
    ch = instr[i]
    if (ord(ch) >= ord('A')) & (ord(ch) <= ord('Z')):
        newCh = ch.lower()
    elif (ord(ch) >= ord('a')) & (ord(ch) <= ord('z')):
        newCh = ch.upper()
    else:
        newCh = ch
    outstr += newCh
print('변환 결과: %s' % outstr)

instr, outstr = '', ''
ch = ''
count, i = 0, 0
instr = input('문자열을 입력하세요: ')
count = len(instr)
for i in range(0, count):
    ch = instr[i]
    if (ord(ch) >= ord('A')) & (ord(ch) <= ord('Z')):
        newCh = ch.lower()
    elif (ord(ch) >= ord('a')) & (ord(ch) <= ord('z')):
        newCh = ch.upper()
    else:
        newCh = ch
    outstr += newCh
print('변환 결과: %s' % outstr)
