feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
import csv
with open("export.csv") as csv_file:
csv_reader = csv.reader(csv_file)
line_count = 0
nations = {}
for row in csv_reader:
if line_count == 0:
print(f'Column names are {", ".join(row)}')
line_count += 1
else:
nations[row[0]] = row[2]
while True:
uinput = input("Inserisci il nome della nazione o quit: ")
if uinput == "quit":
break
print(nations[uinput])