What is the output of the following code ? def stringDisplay(): while True: s = yield print(s*3) c = stringDisplay() next(c) c.send(‘Hi!!’)

QuestionsCategory: Python 3What is the output of the following code ? def stringDisplay(): while True: s = yield print(s*3) c = stringDisplay() next(c) c.send(‘Hi!!’)
admin Staff asked 3 years ago

Answer: Hi!!Hi!!Hi!!