18 lines
362 B
Python
18 lines
362 B
Python
#edit this cell to write the program
|
|
|
|
hotel = []
|
|
|
|
with open("./votes.txt",'r') as fi:
|
|
lines = fi.readlines()
|
|
for l in lines:
|
|
l2 = l.strip()
|
|
hotel.extend(l2.split(', '))
|
|
|
|
|
|
print("Disney: " + str(hotel.count("Disney")))
|
|
print("Hotel ICON: " + str(hotel.count("Hotel ICON")))
|
|
print("Ocean Park: " + str(hotel.count("Ocean Park")))
|
|
|
|
|
|
|
|
print("helloworld") |