Jan-19-2021, 06:05 PM
when
Then there is one more problem in that line
txt_2_search
is not present in the dict keys, dict.get()
will return default value of None
. None[3]
raise the exception you see.Then there is one more problem in that line
if unit[3] == "fundamentals" or "supplementary quantities" or "derived quantities":it will not work as you expect. see https://python-forum.io/Thread-Multiple-...or-keyword
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs