You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print("You cannot access items in a set by referring to an index, since sets are unordered the items has no index but by using Loop through the set and print the values")
myset1={"apple","banana","orange","cherry"}
for x in myset1:
print(x)
print("apple" in myset1) # the result will be true.