Thursday, May 9, 2024

📑 Sets and Elements

📑 Task

1) What will be the result of running the program?
2) Suggest as many other ways as possible to add and remove this element from the set
How else can a mini- program check if there is an element in a given set?

📑 Answer

1) Outputs: {0, '♗', '♙', 1, 2, 3, '♕', '♔', 4, '♖', '♘'} ♘ and False
2)


No comments:

Post a Comment