I feel my recently gained knowledge is still not sufficient when it comes to string processing. Please help me solve the below problem statement: (Please note:This is the simpler version of my requirement)
So.. I have a file (myoption) with content as below:
day=monday,tuesday,wednesday
month=jan,feb,march,april
holiday=thanksgiving,chirstmas
My python script should be able to read the file and process the read info such that in the end i have three list variables as below:
day --> ['monday','tuesday','wednesday']
month --> ['jan','feb','march','april']
holiday --> ['thanksgiving','christmas']
Please note: As per my requirement, the format for contents in myoption file should be simple. Hence You are free to modify the format of 'myoption' file without changing the content - This is to give you some flexibility.
Thanks :)