MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/4nd3lc/scientific_python_cheat_sheet/d43p6o0/?context=3
r/Python • u/Link2mypast • Jun 09 '16
62 comments sorted by
View all comments
2
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.
1
yep, you're right.
2
u/datosh Jun 10 '16
In the dict examples thrid line: shouldnt it be
since a is the dict and b is only a single item from the list assigned in the previous line?