b = set()
# inserting numbers in the set
b.add(2)
b.add(5)
b.add(5) # inserting 5 double time will have no effect

# set looks like this: {2, 5}

# checks if "2" exists in the set or not
if 2 in b:
    print("Found")
else:
    print("Not found")

g = set()
# inserting numbers in the set
g.add(2)
g.add(5)
g.add(5) # inserting 5 double time will have no effect

# set looks like this: {2, 5}

# checks if "2" exists in the set or not
if 2 in g:
    print("Found")
else:
    print("Not found")

# ------------------

d = {}
# inserting numbers in the map with their frequencies
d[2] = 1
d[5] = 2

# map looks like this:
"""
Key   Value
2 --> 1

5 --> 2
"""
# checks if "2" as key exists in the map or not
if 2 in d:
    print("Found")
else:
    print("Not found")

# check the frequency of key "5"
print(d[5])

kk = {}
# inserting numbers in the map with their frequencies
kk[2] = 1
kk[5] = 2

# map looks like this:
"""
Key   Value
2 --> 1

5 --> 2
"""
# checks if "2" as key exists in the map or not
if 2 in kk:
    print("Found")
else:
    print("Not found")

# check the frequency of key "5"
print(kk[5])
