prog4biol / pfb2018

15 stars 34 forks source link

nested dictionary loop example #54

Closed nomascus closed 5 years ago

nomascus commented 6 years ago

Can we add a script example to Python 8 that shows how to build a dictionary of dictionaries with loops? Perhaps something from a multifasta file? This seems like a more likely example of what people will be doing in the real world, but we haven't really shown how to build nested structures with loops. This sort of example was in the perl lectures, no?

srobb1 commented 5 years ago

done. use loop to build nt_count dict in dict lecture (python 5). https://github.com/prog4biol/pfb2019/commit/1b8fe792a09f312db05f769d102c59b1496aea1c