r/PythonLearning • u/clcodingupdates • 22d ago
Discussion What will be the output of the following Python code?
print(sum({1, 2, 2, 3} & {2, 3, 4}))
0
Upvotes
r/PythonLearning • u/clcodingupdates • 22d ago
print(sum({1, 2, 2, 3} & {2, 3, 4}))
4
u/recentAd1666 22d ago
What s the point of this question ? Just type the code in python. If you have more spécific question please ask it clearly.
2
u/Sea-Ad7805 22d ago
5
1
u/Key_River7180 18d ago
This seems like homework for me, type it to Python
0
u/DanceHackRock 22d ago
It needs 5 seconds to try this.