my code:
entered_text = input(str("Enter text - \n"))
entered_text = list(entered_text.split('. ' and ', ' and ' ' and '.'))
print(entered_text)
but I receive this as a result. ['text1 text2 text3 text4'] as one element, how i can devide them?
my code:
entered_text = input(str("Enter text - \n"))
entered_text = list(entered_text.split('. ' and ', ' and ' ' and '.'))
print(entered_text)
but I receive this as a result. ['text1 text2 text3 text4'] as one element, how i can devide them?
 
    
    I did it like this:
entered_text = input(str("Enter text = \n"))
res = entered_text.strip().split(" ")
