DEV Community

Discussion on: What do you Google EVERY. SINGLE. TIME. and never just memorize?

r0f1 profile image
Florian Rohrer

How to use grep and find.
Also when I write data = {} in Python, is this a set or a dict?

z0al profile image

This can't be a Set

data = {}

It's always a dictionary!
If you want an empty Set use:

data = set()

P.S. it's handy to use the official Python REPL and type type(youvariable) ;)