How do I read the first line of a string?

Viewed 83602
my_string = """This is my first line,
this is my second line, and...

...this is my fourth line!"""

How can I store the first line of that (This is my first line,) into a separate string? I attempted to use .readline() from another similar question, however I get this error:

AttributeError: 'str' object has no attribute 'readline'

3 Answers
Related