Friday, April 26, 2024

📑 Sending Values to the Generator

📑 Task

1) What will the program print?
2) What types of functions are in the program?
3) How can you fix it so that the number 101 will also be printed?

📑 Answer

1) 111 121 131 141 151 161 171 181 191
2) An anonymous "lambda" function and
a function of the type "infinite generator" are used here
3)