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