📚 The CoCalc Library - books, templates and other resources
1results = [] 2 3for x in data: 4 y = delayed(inc)(x) 5 results.append(y) 6 7total = delayed(sum)(results) 8print("Before computing:", total) # Let's see what type of thing total is 9result = total.compute() 10print("After computing :", result) # After it's computed 11