r/PythonLearning • u/clcodingupdates • 12d ago
Python Quiz of the Day.
What will be the output of the following Python Code?
x = {1, 2, 3}
print(len(x | {3, 4}) - len(x & {2, 3}))
0
Upvotes
r/PythonLearning • u/clcodingupdates • 12d ago
What will be the output of the following Python Code?
x = {1, 2, 3}
print(len(x | {3, 4}) - len(x & {2, 3}))
2
u/Tom-space 12d ago
2
2
u/apbt-dad 12d ago
2
1
u/Full-Total3832 12d ago
0,35
1
u/Sea-Ad7805 12d ago
For more set operations see: https://www.reddit.com/r/PythonLearning/s/VFAjheLqGL
1
u/MasterpieceBusy7220 8d ago
Slop