Solution Exercise 46: list of uppercase letters in a python string
Exercise 46 Write a Python algorithm as a function which takes as parameter a string variable s and which returns the list of all uppercase characters found in s. Solution def listShift (s): # initialization of the list of capital letters l_maj = [] for x in s: if x.isupper (): l_maj.append (x) return l_maj#…