diff --git a/Codes/Practical-A4.py b/Codes/Practical-A4.py index 2a52e83..5945628 100644 --- a/Codes/Practical-A4.py +++ b/Codes/Practical-A4.py @@ -47,7 +47,7 @@ def size(Set): print(f"Size of set is:\t{len(Set)}") def iterator(setA): - a = iter(setA) + a = iter(setA) # iter is a built-in function for i in range(0,len(setA)-1): print(next(a),"->",end=' ') print(next(a)) @@ -100,7 +100,7 @@ def main(): print("2 -> Remove value from set") print("3 -> Search value in set") print("4 -> Show size of set") - print("5 -> Iterator (implementation pending)") + print("5 -> Iterate") print("6 -> Intersection of two sets") print("7 -> Union of two sets") print("8 -> Difference of two sets")