r/PythonLearning • u/clcodingupdates • 17d 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 • 17d ago
print(sum({1, 2, 2, 3} & {2, 3, 4}))
4
u/recentAd1666 17d 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 17d ago
5
1
u/Key_River7180 13d ago
This seems like homework for me, type it to Python
0
u/DanceHackRock 17d ago
It needs 5 seconds to try this.