+ 1
Trying to Print all of the caps that is in a string
5 Answers
+ 5
print([letter for letter in test if letter.isupper()])
print(''.join(letter for letter in test if letter.isupper()))
+ 2
Thank you both I have been beating my self up on this
0
so my professor has come back and stated he wanted the .upper used i do not get this at all
0
so with
test = "ThiS is CAP"
print(test.isupper())
t2 = ([l for l in test if l.upper()])
i get a all characters back