Dear Sir or Madam, I am doing the Python & Ethical Hacking course and my Network Scanner was working for me very well but when I did what Zaid does in the program in the “Iterating Over Nested Data Structures” lecture, I am getting error which I do not understand and I cannot figure out why I am getting it. And also may I ask you why I am getting the error “Python 2 is no longer supported.” Thanks a lot for helping me in advance! I appreciate your help a lot!
Hi! For some reason you have added () in code line 19, remove them. And in general it would be a good practice to compare your code with Zaid’s code to make sure the syntax and indentation are correct.
And the python 2 warning is normal, it is not an error. The python developers are just sending a message.
Strictly Necessary Cookies
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
3rd Party Cookies
This website uses Google Analytics and Linkedin to collect anonymous information such as the number of visitors to the site, and the most popular pages.
Keeping this cookies enabled helps us to improve our website.
Please enable Strictly Necessary Cookies first so that we can save your preferences!