Skip to content

Tag: python-3.x

Why does python not provide output in this code?

Here, dataset is a list and s is an integer value index of any object in the list. Answer The problem is with this line: You don’t tell us what sentences is, but it’s apparent it’s not what it needs to be. For example: If your sentences was a list of two-tuples the code would work:

How to solve module problem in Windows 10?

I have a code as below. I run this code using python 3.7 idle, which runs successfully. But when I save it as file.py and run it from using cmd, it pops import module error. My code: Error : cannot import name ‘html’ from ‘lxml’ I can not understand when both are running on the same py…