For example what does the third line mean?
Code:
contents = open("file.dat").read()
for line in contents.split("*"):
if not line: continue # Remove initial empty string.
line = line.strip() # Remove whitespace from beginning/end of lines.
items = line.split("-")
print items[0], ":", " ".join(items[1:])
Comment