Buggy python submission (verdict: Runtime Error):
import string
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",10000)]
dictionary={}
alphabetlist=string.ascii_lowercase
for i in "abcdefghijklmnopqrstuvwxyz":    
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))
    

Fixed submission:
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Buggy python submission (verdict: Runtime Error):
import string
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",10000)]
dictionary={}
alphabetlist=string.ascii_lowercase
for i in "abcdefghijklmnopqrstuvwxyz":    
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Fixed submission:
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Buggy python submission (verdict: Runtime Error):
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",10000)]
for i in "abcdefghijklmnopqrstuvwxyz":    
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Fixed submission:
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Buggy python submission (verdict: Runtime Error):
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",100)]
for i in "abcdefghijklmnopqrstuvwxyz":    
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Fixed submission:
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Buggy python submission (verdict: Runtime Error):
a=[]
while True:
    b=input()
    if b=="":
        break
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",100)]
    print(a)
for i in "abcdefghijklmnopqrstuvwxyz":
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Fixed submission:
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Buggy python submission (verdict: Runtime Error):
a=[]
    for i in range(1200):
    b=input()
    if b=="":
        continue
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",100)]
for i in "abcdefghijklmnopqrstuvwxyz":
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Fixed submission:
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Buggy python submission (verdict: Runtime Error):
a=[]
for i in range(1200):
    b=input()
    if b=="":
        continue
    else:
        a=a+[str(x) for x in b.lower().replace(" ","",100)]
for i in "abcdefghijklmnopqrstuvwxyz":
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Fixed submission:
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))

Buggy python submission (verdict: Runtime Error):
import sys
a=[]
for line in sys.stdin:
    a=a+[str(x) for x in b.lower().replace(" ","",100)]
for i in "abcdefghijklmnopqrstuvwxyz":
    counter=0
    for j in a:
        if i==j:
            counter+=1
    print(str(i)+" : "+str(counter))

Fixed submission:
import sys
cnts = {}
for line in sys.stdin:
    for c in list(line.lower()): cnts[c] = cnts.get(c,0) + 1
  
for c in range(ord('a'),ord('z')+1): print(chr(c),':',cnts.get(chr(c),0))