Quick Question

How do you convert a string to all upper case?

use the built in method…

str.upper()

It doesn’t happen in place so will need to be reassigned.

my_str = my_str.upper()
2 Likes