upper_lower.py 155 B

123456
  1. def uppercase(word):
  2. return ''.join([chr(ord(c) & (255 ^ 32)) for c in word])
  3. # return word.upper()
  4. print(uppercase("Hello World! What's up!?"))