Python 3 multidimensional dictionary
📁 dictionary, Advanced Python Topics, Error, example, work
I'm learning Python 3.X, starting from the basics. Before that, I wrote in PHP.
Now I decided to implement the plan:
- read CSV
- as the file lines are read, process them and write them into an array, creating the desired structure
- ...
Here is my current code
import csv
def gene_name(gene, polfzm, genotype):
return '_'.join([gene, polfzm, genotype]).strip().replace(' ', '_')
data = {}
genes = []
with open('example-2.cs No answers yet.
Log in to leave an answer
Blogs