What's the correct way to use 'import requests as' in Python? or Why do some scripts use 'import requ

20 Replies, 2052 Views

It’s 100% preference, but there’s a case for *import requests as req* in Jupyter notebooks or quick scripts where you’re typing fast. Less typing = fewer errors.

For bigger projects, though, I’d stick with the full name unless there’s a good reason not to.

Messages In This Thread



Users browsing this thread: 1 Guest(s)