Skip to content

Instantly share code, notes, and snippets.

View pomeranian99's full-sized avatar

Clive Thompson pomeranian99

View GitHub Profile
def read_file(filename):
with open(filename) as f:
return f.read()
def count_tags(text):
count = 0
for i in range(len(text)):
if text[i:i+10] == 'class=ITAL':
count += 1
return count