python uppercase a string code example Example: python convert string to lowercase # By Alan W. Smith and Petar Ivanov s = "Kilometer" print(s.lower())