User Tools

Site Tools


assignment1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
assignment1 [2018/09/17 15:38]
dokuroot created
assignment1 [2018/09/17 16:00] (current)
dokuroot
Line 5: Line 5:
 **Due date:​** ​ 9/25/18 by 10 am **Due date:​** ​ 9/25/18 by 10 am
  
-**Note: complete all of the exercises in one `.pyfile (named ​**assignment1_your_last_name.py**) and comment out all but the one exercise you are testing as you complete the assignment. ​ Paste the results ​into the text entry box on Canvas for grading.+**Note:** complete all of the exercises in one ''​.py'' ​file (named ​''​assignment1_your_last_name.py''​) and comment out all but the one exercise you are testing as you complete the assignment. ​ Paste the contents of the file into the text entry box on Canvas for grading. See [[homework_example | here]] for example.
  
 ====Exercise 1====  ====Exercise 1==== 
-Prompt the user for two DNA sequences (two separate prompts), concatenate them, and print the concatenated sequence to the terminal with an informative message (e.g. Concatenated sequence: ACTGCA).+Prompt the user for two DNA sequences (two separate prompts), concatenate them, and print the concatenated sequence to the terminal with an informative message (e.g. ''​Concatenated sequence: ACTGCA''​). \\
 \\ \\
  
 ====Exercise 2====  ====Exercise 2==== 
-Prompt the user for the height (h) and radius (r) of a beaker and print the volume(v) (v = 3.14*h*r^2).\\+Prompt the user for the height (h) and radius ​%%(r)%% of a beaker and print the volume (v) (v = 3.14*h*r^2).\\
 \\ \\
  
Line 23: Line 23:
 ''​ACTGAAA''​\\ ''​ACTGAAA''​\\
 ''​%%|||||||%%''​\\ ''​%%|||||||%%''​\\
-''​TGACTTT''​+''​TGACTTT''​\\
 \\ \\
  
 ====Exercise 5==== ====Exercise 5====
-What types of values are the following ​objects:\\ +Using python, identify the type of each of the following ​values:\\ 
-a) True +  True 
-b) False +  False 
-c) +  
-d) 5.0 +  5.0 
-e) 'ACG+  '5
-f) str(5) +  '​ACG'​
-\\ +
assignment1.1537220281.txt.gz · Last modified: 2018/09/17 15:38 by dokuroot