split a string in python on linebreaks
I have a tuple with a string of times and activities. So, it would be
similar to this:
('08:01: Woke Up\n08:05: Took Shower\n08:20: Ate Breakfast\n08:45: Left
for work', )
I need to be able to take each activity and display individually like so:
8:01 Woke Up
8:05 Took Shower
8:20 Ate Breakfast
8:45 Left for work
Can anyone give me a suggestion for the best/easiest way to do this in
python? Thank you.
No comments:
Post a Comment