Pseudocode is the term used to describe a draft outline of a program written in plain English (or whatever language you write it in :-) ). We use pseudocode to discuss the functionality of the program as well as key elements in the program. Starting a program by using pseudocode can help to get your logic down quickly without having to be concerned with hte exact details or syntax of the programming language.
In [5]:
# This sequence is the first 100 nucleotides of the Influenza H1N1 Virus segment 8
flu_ns1_seq = 'GTGACAAAGACATAATGGATCCAAACACTGTGTCAAGCTTTCAGGTAGATTGCTTTCTTTGGCATGTCCGCAAACGAGTTGCAGACCAAGAACTAGGTGA'
Pseudocode:
NOTE: Please get into teh good habit of commenting your code and describing what you are going to do or are doing. There must be at least one comment in your code.
In [ ]:
# Write your code here (if you wish)
If you would like to create a file with your source doe paste it in the cell below and run. Please remember to add your name to the file.
In [ ]:
%%writefile GC_calculator.py
#Paste Code here
Note: Later in the course we will look at the biopython package that included the capability to compute CG percentage.