Difference between revisions of "Code Snippet: Changing Character Case"
From Coder Merlin
Line 1: | Line 1: | ||
= Print characters in uppercase or lowercase = | |||
== Swift == | |||
<syntaxhighlight lang="swift"> | <syntaxhighlight lang="swift"> | ||
let string = "For the world is hollow, and I have touched the sky!" | let string = "For the world is hollow, and I have touched the sky!" | ||
Line 5: | Line 7: | ||
print(string.lowercased()) | print(string.lowercased()) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== Python == |