Answer the question
In order to leave comments, you need to log in
(Python) What's the problem?
Why does the linter always highlight the first pod. I just started learning Python, so I can't understand the problem.
Here is what is displayed in the status line:
Answer the question
In order to leave comments, you need to log in
Install PyCharm CE
Do not use sublime at all. Yes, perhaps a charm and an overhead for such scripts, but it will immediately point out many errors.
You delete superfluous obvious comments and superfluous code. You leave it like this:
#!/usr/bin/env python3
# coding: utf-8
db = {
'bob': {'name': 'Bob Smith', 'age': 42, 'pay': 30000, 'job': 'dev'},
'sue': {'name': 'Sue Jones', 'age': 45, 'pay': 40000, 'job': 'hdw'},
'tom': {'name': 'Tom', 'age': 50, 'pay': 0, 'job': None},
}
if __name__ == '__main__':
for k, v in db.items():
print(k, '=>\n', v)
try to save in utf-8 with BOM
tab 'File' - 'Save with encoding' - 'UTF-8 with bom'
should help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question