Wednesday, May 1, 2024

📑 Lists with Periodic Patterns

📑 Task

1) Will the program print three separate lists of elements of different types
(letters, numbers, fruit symbols) at least in one of output rows?
2) How can you fix the third and fourth code lines
to get three separate lists of elements of different kinds?

📑 Answer

1) No
In the first case, lists of the required type will be inside tuples
In the second case, tuples of elements of different types will be formed
2)

No comments:

Post a Comment