what-is-the-meaning-of-curly-braces says that they are used for dictionaries, but what about this example?
resp = {
requests.get('http://localhost:8000')
for i in range(20)
}
Taken from here (actually it uses []
, but it works with {}
as well). What is the meaning of this, and why is this loop upside-down?