Last active
January 20, 2018 22:49
-
-
Save theriley106/2f30d66ae952bd9d9e0bdaeccf3b2a57 to your computer and use it in GitHub Desktop.
Wrapper around the Walmart Store Dataset here: https://www.kaggle.com/theriley106/database-of-all-walmart-stores-in-the-us
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 csv | |
stores = {} | |
with open('Database.csv', 'r') as f: | |
reader = csv.reader(f) | |
your_list = list(reader) | |
for line in your_list: | |
stores[line[0]] = line[1] | |
while True: | |
ip = raw_input('Store Number: ') | |
try: | |
print(stores[ip]) | |
except: | |
print("Not a Store") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment