Open siripersson opened 7 years ago
Hi!
In the first task you are counting the lines that contain GC, but you are supposed to count the cumulative number of GC in each line. This is why you get so little number.
In the second task you are throwing darts in the circle x*x + y*y
, and not in the function that is given in the assignment.
I hope this will help. Good luck!
My code for task 1 is the following:
Which gives the result: 164 Bu when I check the text file "dna.txt" the occurrence of "cg" seems to be much more.
My code for task 2:
Which gives the result: 4.0 But it seems to big to be correct.