I have the split the data that starts from ( and ends ) x contains data likes (33)Knoxville, TN,,,(1)Basking Ridge, NJ location = "".join(x.split("()"))[4:] in this split logic what condition should I gve [3:] ??
if name:
if x.startswith('(') and x.endswith(')'):
location = "".join(x.split("()"))[3:]
print(location)
else:
location = x