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 re | |
import csv | |
items = [] | |
success = 0 | |
with open("items.csv", "r") as itemscsv: | |
for line in itemscsv: | |
items.append(re.sub("\n", "", line)) | |
worthyml = "worth:\n" |
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
#Content is from a csv file which is in the format ID,buy-price,sell-price for items and just the name for a category | |
import csv | |
counter = 0 | |
completed = "" | |
categories = 0 | |
items = 0 | |
filename = input("Enter .csv filename: ") + ".csv" | |
with open(filename) as csvfile: | |
creader = csv.reader(csvfile) |