Skip to content

Commit

Permalink
Merge pull request #82 from brymz/Functions-python
Browse files Browse the repository at this point in the history
Python Assignment 3: exercises and text solutions
  • Loading branch information
ethanwhite committed Jun 13, 2015
2 parents 3636eb9 + 7e49f63 commit f393708
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: exercise
title: Functions 2
language: Python
---

Write a function that converts pounds to grams (there are 453.592 grams in one
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: exercise
title: Functions 3
language: Python
---

The length of an organism is typically strongly correlated with it's body
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: exercise
title: Functions 4
language: Python
---

This is a follow up to the [Functions 3 problem]({{ site.baseurl }}/exercises/functions-3).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: exercise
title: Functions 5
language: Python
---

This is a follow up to the [Functions 4 problem]({{ site.baseurl }}/exercises/functions-4).
Expand Down
3 changes: 2 additions & 1 deletion exercises/Functions-6.md → exercises/Functions-6-Python.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
layout: exercise
title: Functions 6
language: Python
---

This is a follow up to [Strings 6]({{ site.baseurl }}/exercises/Strings-6/).
This is a follow up to [Strings 6]({{ site.baseurl }}/exercises/Strings-6-Python/).

A colleague has produced a file with one DNA sequence on each line. Download
[the file]({{ site.baseurl }}/data/dna_sequences_1.txt) and load it into Python using
Expand Down
1 change: 1 addition & 0 deletions exercises/Lists-1.md → exercises/Lists-1-Python.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: exercise
title: Lists 1
language: R
---

The number of birds banded at a series of sampling sites has been counted by
Expand Down
3 changes: 2 additions & 1 deletion exercises/Loops-1.md → exercises/Loops-1-Python.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
layout: exercise
title: Loops 1
language: Python
---

This is a follow up to [Functions 6]({{ site.baseurl }}/exercises/Functions-6/).
This is a follow up to [Functions 6]({{ site.baseurl }}/exercises/Functions-6-Python/).

A colleague has produced a file with one DNA sequence on each line. So far
you've been manually extracting each DNA sequence and calculating it's GC
Expand Down
1 change: 1 addition & 0 deletions exercises/Loops-3.md → exercises/Loops-3-Python.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: exercise
title: Loops 3
language: Python
---

One of your collaborators has posted
Expand Down
1 change: 1 addition & 0 deletions exercises/Loops-4.md → exercises/Loops-4-Python.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
layout: exercise
title: Loops 4
language: Python
---

This is a follow up to [Loops 3]({{ site.baseurl }}/exercises/Loops-3)
Expand Down
1 change: 1 addition & 0 deletions solutions/Functions-2-Python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1701.0
2 changes: 2 additions & 0 deletions solutions/Functions-3-Python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
17150.5636319
24955.535105
5 changes: 5 additions & 0 deletions solutions/Functions-6-Python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
0.411764705882
0.434343434343
0.535714285714
0.33734939759
0.37
7 changes: 7 additions & 0 deletions solutions/Lists-1-Python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
61
83
11
4366
0
900
71.5737704918
5 changes: 5 additions & 0 deletions solutions/Loops-1-Python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
0.411764705882
0.434343434343
0.535714285714
0.33734939759
0.37
10 changes: 10 additions & 0 deletions solutions/Loops-3-Python.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
The volume of the shrubs is 27.456
The volume of the shrubs is 35.112
The volume of the shrubs is 8.91
The volume of the shrubs is 20.25
The volume of the shrubs is 38.44
The volume of the shrubs is 21.0
The volume of the shrubs is 15.39
The volume of the shrubs is 1.265
The volume of the shrubs is 52.5
The volume of the shrubs is 25.056

0 comments on commit f393708

Please sign in to comment.