+ 2

How do I turn a string into capital letters or the other way around? (Python)

For example: "hello world" (some process) "HELLO WORLD"

16th Jun 2024, 12:19 PM
Pablo PC
Pablo PC - avatar
3 ответов
+ 5
Look into the upper() and lower() methods
16th Jun 2024, 12:40 PM
Slick
Slick - avatar
+ 1
thanks!
16th Jun 2024, 12:51 PM
Pablo PC
Pablo PC - avatar
+ 1
And remember that strings are immutable.
17th Jun 2024, 8:03 AM
Paweł Dudek