You can’t really do that, the only possible thing is put the response and the source on the same line. Or you could use ;
between statements, but that’s ugly.
But more importantly, why would you do that? Why is it better to have it all in on line?
>>> import this
The Zen of Python, by Tim Peters
...
Readability counts.
...
solved I do urllib2 and I download the htmlSource of the webpage. How do I make this all on 1 line? [closed]