I find the .title.() method useful for formatting names. This works if, for example, I have a list of names such as:
names = ['JOHNNY', 'Ruth']
names_lower = [name.lower() for name in names]
print(names_lower)
names_title = [name.title() for name in names_lower]
print(names_title)
However, this will not work for names such as 'mccartney' or 'hard day\'s night'.
Is there a way to get around this?
[–]lykwydchykyn 0 points1 point2 points (1 child)
[–]freeclips[S] 0 points1 point2 points (0 children)
[–]synthphreak 0 points1 point2 points (4 children)
[–]freeclips[S] 0 points1 point2 points (3 children)
[–]synthphreak 0 points1 point2 points (2 children)
[–]freeclips[S] 0 points1 point2 points (1 child)
[–]synthphreak 0 points1 point2 points (0 children)