This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
salesTotal = 0.0 | |
oldKey = None | |
dummy_Data=["Miami 12.34","Miami 99.07","Miami 55.07","NYC 88.97","NYC 33.56"] | |
for line in dummy_Data: | |
data = line.strip().split(" ") | |
if len(data) != 2: | |
# Something has gone wrong. Skip this line. | |
continue |