how to make python to take letters both uppercase and lowercase code example Example: python string to lower str = 'heLLo WorLD' print(str.lower()) # hello world