135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
no no i see one start and then finish and then another fun start and finish like this, i wished all 3 will be start at same time, i found i need to use somethign others mechanism there to run this 3 fun at same like time without each other waiting for previous one,
i found though this my main() fun looks like async-await, but it is still normally calling the funcitons in it 😅
Please don't ask meta questions like:
- Any user of $x here?
- Anyone used technology $y?
- Hello, I need help on $z!
Just ask about your problem directly! If you don't know what to ask, please read: http://catb.org/~esr/faqs/smart-questions.html
async def main():
saved_path_1 = await download_file(
link=links_to_download[0],
)
saved_path_2 = await download_file(
link=links_to_download[1],
)
saved_path_3 = await download_file(
link=links_to_download[2],
)
if __name__ == "__main__":
asyncio.run(main())
Hello , Has anyone worked with the SQLAlchemy database module in Python, who then inserted the database into the main code?
Читать полностью…
hi, what's your favourite function from the stdlib?
Читать полностью…
Why does this line data: SongPayload = request.get_json() or {}
has this typeAny | dict[Any, Any]?
The issue is "dict[Any, Any]" is not assignable to "SongPayload" means dict[Any, Any] is the culprit.
Can you getdict[Any, Any]
out of Any | dict[Any, Any] in data: SongPayload = request.get_json() or {}?
Read this
https://code.likeagirl.io/concurrency-parallelism-async-47312e0be553
I'm sure out of 90k members at least one person have worked with sql alchemy before, ask your question directly.
Читать полностью…
Here there is the official Python tutorial, to help you learn Python step by step:
https://docs.python.org/3/tutorial/index.html
I think that's the first project you build with Automation with python book.
It also has other cool projects.
I believe he'd benefit alot from that book, especially part II. (Page 183 onwards)
Anything you can think of that doesn't require a GUI or external libraries. Since you haven't covered either.
Читать полностью…
Practicing yes, also in the sense of your own projects. Recommended. Contributing to other projects; likely a no.
Читать полностью…
I mean, should I keep learning more Python topics, or is what I’ve learned so far enough to start practicing and working on projects?
Читать полностью…
I’ve learned quite a few Python basics so far: print, variables, data types, if statements, for loops, lists, functions, and dictionaries.
But I still have a lot left to learn, and honestly, I’m starting to feel a bit tired. I wanted to ask someone who’s experienced with Python: do you think what I’ve learned so far is enough to start with, or should I keep learning more before moving on?
request.get_json() returns Any in flask stubs, so or {} widens to Any | dict
I just wanted to know does it worth to spent years on learning this language and I got my answer
Читать полностью…