Day 2 - Intro to Python Workshop
Wednesday 8B | Room 57
9/10/2025
Downloading Python
www.python.org/downloads/
Online python environment
online-python.com
Operators
1 >= 3 → False | 2 == 2 → True | 4 != 6 → True |
4 + 1 → 5 | 7 % 3 → 1 | 3 ** 2 → 9 |
Variables
Examples of Variables
Examples of Variables
Examples of Variables
Examples of Variables
Strings
If-Else
Examples of If-Else Clauses
Examples of If-Else Clauses
Lists
Examples of Lists
Examples of Lists
List Indices
List Slicing
List Slicing
List Assignments and Deletion
Loops
While Loops
For Loops
range() Function
Examples of range()
Practice Problem Bio in CS
In bioinformatics, a common task is to calculate the GC content of a DNA sequence. GC content is the percentage of Guanine (G) and Cytosine (C) bases in a DNA or RNA sequence. This value can be important for a variety of reasons, such as predicting the stability of DNA.
The Problem
Write a Python program that takes a DNA sequence as a string and calculates its GC content.
Answer
Kahoot Time!!
Get your computers out :D