Convert text to lowercase
Give these short labels the same letter case. All four inputs use plain English letters and digits.
lower
Simple example
Change the case of two letters.
Start'AB'
Resultab
def main() raises:
print(String("AB").lower())
ab
Advertisements
Everyday examples
Make the bus label match the route board.
Start'BUS'
Resultbus
def main() raises:
print(String("BUS").lower())
bus
Give an art shelf the same lettering as the other shelves.
Start'ART'
Resultart
def main() raises:
print(String("ART").lower())
art
Normalize the letters in a ticket code and keep its digits.
Start'B12'
Resultb12
def main() raises:
print(String("B12").lower())
b12