Question: Question 9: Write the output of the following python code #!/usr/bin/python str = Line1-a b c d e f Line2- a b c Line4- abcd;

Question 9: Write the output of the following python code #!/usr/bin/python str = "Line1-a b c d e f Line2- a b c Line4- abcd"; print str.splitlines(); print str.splitlines(O); print str.splitlines(3); print str.splitlines(4); print str.splitlines
Step by Step Solution
There are 3 Steps involved in it
Sure lets go through the Python code and determine its output The splitlines method is used to split ... View full answer
Get step-by-step solutions from verified subject matter experts
