Skip to content

Tag: python-3.x

Pass multiple variables from one module to another

I have several modules in the folder “Programm/modules” which are called by another script in “Programm”. One for example looks like this: “calculate.py” this I would like to load into another module “print.py” But I get the error “ModuleNotFoundError: No …

Could this selenium code be recreated using scrapy?

I’m interested in getting a better idea of what scrapy can do. Here is a very simple selenium code that interacts with a website, fills in some boxes, clicks some elements and downloads a file. Could this code be replicated using scrapy?, so that a code is written using scrapy that does the exact same t…

Python module Wikipedia producing the wrong answer

Code It for some reason changes einstein family to epstein family and i have no idea why does anyone know why this error occurs? Answer Change the to I was looking through the wikipedia.py file and found that auto_suggest can change your RESULTS[i] to a close approximation and so by turning it to False it sto…

globas and exec in python

I have written code, to create variable and assign values using for loop. but I am getting result as None but even I tried to change the code with below modification, still getting the same Can some one help me to get the proper answer for this. Note: even I used exec function in the place of name (ex: exec(f…