<gh_stars>1-10
fp = open( "lab05_pre-lab_input.txt" )
total = 0
letters = ''
for line in fp:
    for ch in line:
        if ch.isdigit():
            total += int(ch)
        elif ch.isalpha():
            letters += ch
            
print( total )    # Line 1
print( letters )  # Line 2
fp.close()
fp = open( "lab05_pre-lab_input.txt" )
total = 0
letters = ''
for line in fp:
    for ch in line:
        if ch.isdigit():
            total += int(ch)
        elif ch.isalpha():
            letters += ch
            
print( total )    # Line 1
print( letters )  # Line 2
fp.close()
# Line 1 # Line 2