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
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 {}?
fable 5 is wild but it still needs someone to tell it what to build
Читать полностью…
But when I see jev or fable 5.1 they can replace us
Читать полностью…
yaa i think i should to convert this dict[Any,Any] to this payload first in a try-except block and then use this will be fully ok as i can think
Читать полностью…
usually you pass reply_to_message_id=message.message_id in bot.send_message()
"dict[Any, Any]" is not assignable to "SongPayload"
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
Читать полностью…
I want to ask about does it worth to learn python in this ai situation? I mean can I even make 1$ or ai wont let me
Читать полностью…
sorry sorry i didn't remember this, actually i thought he is from my own bengali language person that' why btw i will be very careful next time 😅
thanks i will try to help others directly in the chat group from now
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase.