1. Official Python Documentation: The Python Tutorial, Section 5.4, "Sets", states that a set is an "unordered collection with no duplicate elements." It supports iteration.
Source: Python Software Foundation. (2024). The Python Tutorial — Python 3.12.3 documentation. Retrieved from https://docs.python.org/3/tutorial/datastructures.html#sets
2. Official Python Documentation: The Python Tutorial, Section 4.2, "for Statements", explains that the for statement is used to iterate over the items of any sequence (such as a list or a string) or other iterable objects.
Source: Python Software Foundation. (2024). The Python Tutorial — Python 3.12.3 documentation. Retrieved from https://docs.python.org/3/tutorial/controlflow.html#for-statements
3. University Courseware: MIT OpenCourseWare provides materials that cover fundamental Python concepts, including data structures and iteration. The principles of iterating over collections like lists apply directly to sets.
Source: Guttag, J. V. (2016). 6.0001 Introduction to Computer Science and Programming in Python, Fall 2016. Massachusetts Institute of Technology: MIT OpenCourseWare. Lecture 5 notes cover iteration over data structures. Retrieved from https://ocw.mit.edu/courses/6-0001-introduction-to-computer-science-and-programming-in-python-fall-2016/