📑 Task
1) What will the program print in the last line?2) Modify the program so that the same result is produced by a generator function
with arguments: the original list, the starting character, and the length of the resulting list
Suggest variants of code for returning from the resulting list to the original list
📑 Answer
1) ['♗', '♘', '♙', '♔', '♕', '♖', '♗', '♘', '♙', '♔']2)
No comments:
Post a Comment