"metadata": {},
"outputs": [],
"source": [
- "NAMES_LIST = \"yob2018.txt\"\n",
- "\n",
- "boys = {}\n",
- "girls = {}\n",
- "\n",
- "for line in open(NAMES_LIST, 'r').readlines():\n",
- " name, gender, count = line.strip().split(\",\")\n",
- " count = int(count)\n",
- "\n",
- " if gender == \"F\":\n",
- " girls[name.lower()] = count\n",
- " elif gender == \"M\":\n",
- " boys[name.lower()] = count"
+ "from ssadata import boys, girls"
]
},
{
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.4"
+
+ "version": "3.9.2"
}
},
"nbformat": 4,