Skip to content

Instantly share code, notes, and snippets.

View malsagov1's full-sized avatar

Umar Malsagov malsagov1

View GitHub Profile
@malsagov1
malsagov1 / PSET6 CS50 DNA easy solution
Created May 30, 2021 16:14
PSET6 CS50 DNA easy solution. Check out this code guys, may be helpful for someone.
import csv
import sys
def repeats(str, dna):
maxim = []
counter = 0
i=0
while i<len(dna):
if dna[i:i+len(str)] == str:
counter = counter + 1