DemidShumakher

ЛЮБЛЮ ВЕСНИНА

Oct 18th, 2021
860
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s = input()
  2. b = ""
  3. for i in range(len(s)):
  4.     ordd = ord(s[i])
  5.     k = s[i]
  6.     if ordd >= 97 and ordd <= 122:
  7.         k = chr(ordd - 32)
  8.     elif ordd >= 1040 and ordd <= 1071:
  9.         k = chr(ordd + 32)
  10.     b += k
  11. print(b)
  12.  
RAW Paste Data