⊗pyPmIBSCs 179 of 208 menu

Case Sensitivity in Python

lower upper swapcase capitalize casefold title

Given a string:

txt = 'ABCDE'

Make all the letters in it lowercase.

Given a string:

txt = 'abcde'

Capitalize all letters in this line.

Given a string:

txt = 'abcde'

Capitalize the first letter of this line.

Given a string:

txt = 'word1 word2 word3'

Capitalize the first letter of each word in this line:

'Word1 Word2 Word3'

Given a string:

txt = 'ABC def'

Change the case of the characters to the opposite:

'abc DEF'

Given a list:

lst = ['ab', 'Cd', 'eF']

Let each of its elements begin with a capital letter.

Suppose you have a dictionary where the keys are usernames and the values ​​are their emails. Write code so that all the letters in the email strings are lowercase.

byenru