I have a code:
import re
print(re.split(' (\d+)','APPLE JUICE 20'))
Why am I getting an empty string at the end of the list and how to fix that?
['APPLE JUICE', '20', '']
I have a code:
import re
print(re.split(' (\d+)','APPLE JUICE 20'))
Why am I getting an empty string at the end of the list and how to fix that?
['APPLE JUICE', '20', '']