I want to use the variable of a for loop in my main function.
This will throw an error saying x is undefined:
text = 'rough example'
def splitter(text):
for x in sent_tokenize(text):
print(x)
return x
def main():
x = splitter(text)
main()