Hi,
I’m using python code to locate lower case strings and title them ,
but it doesnt work ,
any idea whats worng?
Strings are immutable, meaning that you cannot call a method in-place such as “item.title()” on its own. See below:
list_in = IN[0]
list_out = []
bool_out = []
for item in list_in:
if item.islower():
bool_out.append(True)
item = item.title()
else:
bool_out.append(False)
list_out.append(item)
OUT = list_out, bool_out
2 Likes
thank u !!
1 Like