Collecting names, starting with empty braces
Predict the output · Medium · §4.4 Sets
This code tries to make an empty set to collect the people who liked a post. Predict the result without running the code.
Code
liked = {}
print(type(liked))
liked.add("yuna")
print(len(liked))Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.