count nodes in chain

Run Settings
LanguagePython
Language Version
Run Command
import sys employee = {} for line in sys.stdin: line2 = line.rstrip().split(',') employee[ line2[0] ] = line2[1] for posnum in sorted(employee): while employee: print('', posnum, end="") if posnum in employee: posnum = employee[posnum] else: print('\n', "-" * 25 ) break
Editor Settings
Theme
Key bindings
Full width
Lines