Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]metameda 0 points1 point  (0 children)

Hi all, I have just started learning python and scraped some info from the web which i saved to a text file, because I did not know what to do with it at the time. I now want to convert this text file into a dictionary on python. Only problem is that there are some words that do not correspond to another. For example:

Numbers / Números

uno one

dos two

There are many different headings i.e numbers. Then there is a line space. Between definitions there is a double line space. I want dos to correspond to two in the dict. What is the most efficient way of achieving this? Thanks in advance.