Case Sensitivity in Python
lowerupperswapcasecapitalizecasefoldtitleЗадание 1
Given a string:
pythontxt = 'ABCDE'
Make all the letters in it lowercase.
Задание 2
Given a string:
pythontxt = 'abcde'
Capitalize all letters in this line.
Задание 3
Given a string:
pythontxt = 'abcde'
Capitalize the first letter of this line.
Задание 4
Given a string:
pythontxt = 'word1 word2 word3'
Capitalize the first letter of each word in this line:
python'Word1 Word2 Word3'
Задание 5
Given a string:
pythontxt = 'ABC def'
Change the case of the characters to the opposite:
python'abc DEF'
Задание 6
Given a list:
pythonlst = ['ab', 'Cd', 'eF']
Let each of its elements begin with a capital letter.
Задание 7
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.