Skip to content

Cdav184 #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions assignments/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
Submit your assignments in this folder.

#!/usr/bin/env python

#For the different bases in the DNA sequences calculate the frequencies.

dnaSeq = input ("Enter your DNA sequence:")

#Begin calculating the entire length of the given sequence.
print ("Total Sequence Length:")
print (len(dnaSeq))

#count total number of A's.
print ("Number of As:")
print (dnaSeq.count ('a'))

#count total number of C's.
print ("Number of Cs:")
print (dnaSeq.count ('c'))

#count total number of G's.
print ("Number of Gs:")
print (dnaSeq.count ('g'))

#count total number of T's.
print ("Number of Ts:")
print (dnaSeq.count ('t'))
File renamed without changes.
6 changes: 6 additions & 0 deletions myProgram.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env python

# This is a comment.

userStr = input("What's your name? ")
print("Hello, %s" % (userStr.upper()))
25 changes: 25 additions & 0 deletions week7.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env python

#For the different bases in the DNA sequences calculate the frequencies.

dnaSeq = input ("Enter your DNA sequence:")

#Begin calculating the entire length of the given sequence.
print ("Total Sequence Length:")
print (len(dnaSeq))

#count total number of A's.
print ("Number of As:")
print (dnaSeq.count ('a'))

#count total number of C's.
print ("Number of Cs:")
print (dnaSeq.count ('c'))

#count total number of G's.
print ("Number of Gs:")
print (dnaSeq.count ('g'))

#count total number of T's.
print ("Number of Ts:")
print (dnaSeq.count ('t'))