Answer
List: [x*x for x in range(5)]
Set: {x for x in range(5)}
Dict: {x: x*x}
Fast, concise, readable.
Set: {x for x in range(5)}
Dict: {x: x*x}
Fast, concise, readable.
Sign in to access all features and personalize your learning experience.
Source: SugharaIQ