Open bpieszko opened 4 years ago
Try to load data from a file. It can be just CSV file or better JSON.
birthdays = [] f = open("data.csv", "r") lines = f.readlines() for line in lines: name, birthday = line.split(',') birthdays.append([name, birthday])
JSON can be overkill now. You should try CSV.
Yeah I will try it
Try to load data from a file. It can be just CSV file or better JSON.