Skip to content

Commit

Permalink
List comprehension to be added
Browse files Browse the repository at this point in the history
  • Loading branch information
IshaanSD committed Oct 21, 2021
1 parent 87cb8e5 commit 4be9ae9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/4_Python.md
Expand Up @@ -138,5 +138,10 @@ for line in file:

Run Loop.py and see what happens. Voila.

If instead of printing the these headers, you wanted to put them in a list or a set, there's another python magic called List comprehension.
..
..
..

## Your Turn
Modify Loop.py so that it counts the number of G's and C's in the DNA sequences. Be sure not to count the header files. This value has real biological significance that you can read about [here](https://en.wikipedia.org/wiki/GC-content).

0 comments on commit 4be9ae9

Please sign in to comment.