QuestionQ56

VerifiedFunctions and Exceptions

What is the expected output from the following code?

Question Image

Explanation

Each generator iteration appends one * to the existing string and yields the cumulative value. Printing *, **, and *** consecutively with end="" produces ******.

Community Discussion

No comments yet. Be the first to start the discussion!