Question: Recursive LOLs ***IN PYTHON PLEASE*** Some people like to spam Internet chatrooms with the single word LOL. This often annoys some of the other users,

Recursive LOLs ***IN PYTHON PLEASE*** Some people like to spam Internet chatrooms with the single word LOL. This often annoys some of the other users, who will respond by announcing One more LOL and Im out. Still other users will parody this response by posting One more One more LOL and Im out and Im out, and so on, nesting more and more layers of One more {X} and Im out.

Complete the recursive lol() function, which takes a positive (non-zero) integer argument representing the level of nesting (One more LOL and Im out represents one level of nesting). The function returns a string containing the appropriately- nested version of the string above. For example, lol(3) would return the string One more One more One more LOL and Im out and Im out and Im out. You DO NOT need to worry about correct capitalization or printing nested quotes in your answer. HINT: Your base case should be level 0, which is just LOL.

Function Call Return Value
lol(0) LOL
lol(2) One more One more LOL and Im out and Im out
lol(5) One more One more One more One more One more LOL and Im out and Im out and Im out and Im out and Im out

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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!