r/Python • • Jun 09 '16

Scientific Python Cheat Sheet

https://ipgp.github.io/scientific_python_cheat_sheet/
476 Upvotes

62 comments sorted by

View all comments

2

u/datosh Jun 10 '16

In the dict examples thrid line: shouldnt it be

c = [value for key, value in **a**.items()] 

since a is the dict and b is only a single item from the list assigned in the previous line?

1

u/tfhoon Jun 10 '16 edited Jun 10 '16

yep, you're right.