import urllib moby = urllib.urlopen("your url here").read() # Complete the definition of this function: def frequency(char): count = 0 for x in moby: if char in x: count = count + 1 else: count = count print count frequency('c')