feature/hod: import csv s hodnotami

This commit is contained in:
2026-06-21 15:02:45 +02:00
parent d796c6012b
commit ac6d8d9182
+12
View File
@@ -1,6 +1,18 @@
from random import randint
from os import system, name
import re
import csv
hodnoty = {}
with open("hodnoty.csv", "r") as csv_file:
csv_reader = csv.reader(csv_file)
for row in csv_reader:
key = str(row[0])
value = str(row[1])
hodnoty[key] = value
def throw(count):
count = int(count)