Feb-04-2020, 02:13 AM
You were getting the double print because lines 18 and 27 both call
dataread(htmlwr()) should have given you
htmlwr()
. And it is the only print statement and tacks "foo" onto it each time.dataread(htmlwr()) should have given you
Error:dataeread() takes 0 positional arguments but 1 were given
That's because it isn't asking for anything, but you gave it one thing.dataread()
is at the global level, so you can access it all the same. I'm not sure what you are specifically trying to do. If you put a print(location)
statement inside dataread()
you wont't get the "foo".