x = {"a", "b", "c"}
y = {"b", "c", "d"}
z = x & y
print(z)
Right Answer:
The & operator is used for set intersection, which returns the common elements between two sets. Therefore, the output will be {“b”, “c”}.
Right Answer:
The & operator is used for set intersection, which returns the common elements between two sets. Therefore, the output will be {“b”, “c”}.
Right Answer:
The code converts the integer “x” to a string using the str() function and then concatenates it with the string “y”. Therefore, the output will be “1020”.
Right Answer:
Lists in Python are mutable, meaning their elements can be changed after they are created.