I am struggling to get the second output which is "None" when I tried to return all capital letters within the statement below
i tired the below
def findUpperCase(string):
r = re.findall('([A-Z][a-z]+)', string)
for word in string:
if r == string:
r
return sorted(r)
print( findUpperCase('Hello World Paython.') )
# Output [Hello, World, Paython]
print( findUpperCase('i am still learning') )
# Output None