onecompiler / cheatsheets

Large collection of Developer Cheat Sheets, created and maintained by the awesome developers across the globe :earth_americas:
https://onecompiler.com/cheatsheets
137 stars 230 forks source link

Added information about how to create a new set. #508

Closed renuka-rajpuria closed 1 year ago

renuka-rajpuria commented 1 year ago

Generally beginners and even experienced programmers make the mistake of creating a new empty set as: new_set = {} but this will create a dictionary, therefore we should write: new_set = set()