I have an HTML object that contains a list if an 'X' is found I want to print the x and the next item in the list:
for string in tr[30].strings:
if string == 'X':
print(string)
print(string.next())
Getting error:
TypeError: 'NavigableString' object is not callable