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

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

1 Expert Approved Answer
Step: 1 Unlock

Sure lets go through the Python code and determine its output The splitlines method is used to split ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!