Jozinsbazin February 28, 2023 ℹ️ Probably the quickest illustration of #comprehensions vs #generators in #Python from time import sleep def slow(x): sleep(1) return x print("Starting...") [slow(x) for x in [1,2,3,4,5,6]] print("After [].") (slow(x) for x in [1,2,3,4,5,6 I like 0 Comments 0 Retux 0