What is the correct fix?
def first_upper(words):
for w in words:
if w[0].isupper:
return w
- Change
w[0]tow[1]in the test - Use
w.isupperon the whole word - Return
wordsinstead of the count - Change
isuppertoisupper()
isupper is a method and must be called with ().