diff --git a/content/lessons/code-this-not-that-python-edition/index.md b/content/lessons/code-this-not-that-python-edition/index.md index 277e95a36..cdfc907f8 100644 --- a/content/lessons/code-this-not-that-python-edition/index.md +++ b/content/lessons/code-this-not-that-python-edition/index.md @@ -215,7 +215,7 @@ from sys import getsizeof # Inefficent way 💩: Using a list ❌ L = [n for n in range(42_000)] -sum(L) # 881979000 +sum(L) # 881979000 bytes getsizeof(L) # 351064 bytes # Efficient way 🔥: Use a generator ✅ @@ -264,4 +264,4 @@ f.close() # Pythonic way 🐍 - Use a context manager ✅ with open("file.txt", "w") as f: f.write("Hi mom!") -``` \ No newline at end of file +```