0
I have the following problem, when trying to use the functions lower()
, title()
and upper()
.
My compiler simply won’t allow and displays the error
AttributeError:'list' object has no attribute'upper'
Follows the code:
bomdia = ["list"]
bomdia2 = ["LIST"]
print(bomdia.upper())#AttributeError:'list' object has no attribute'upper'
print(bomdia2.lower())#AttributeError:'list' object has no attribute'lower'
print(bomdia.title())#AttributeError: 'list' object has no attribute 'title'