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
It depends on the builtin function
Builtin functions are optimized
But if they are for multipurpose and you have a specific case where you can optimize for your case better than the builtin function, then you can write your own function
But most of the time it is good to use builtin functions
-- just my thoughts
In a question, if we are given to write a user-defined function, is it advisable or not for a good programmer to use in-built functions ??
Читать полностью…Hey admins, if I want to paste my code, simply I have to click on the pasting service link and then paste my code there, and then recopy it and paste it here. I mean is that how pasting service works??
Читать полностью…Hello everyone, do you guys help with Django Rest Framework too? Im working with it right now
Читать полностью…https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
Читать полностью…So first then search for that, here we can help you with the python part
Читать полностью…Do you already have access tt he API? because it is not public
Читать полностью…Yep but sometimes it's working and sometimes it's like that pretty weird
Читать полностью…The error is coming in toolmessage when i run the agent but it runs again and that time it successfully runs and provides the appropriate response but i have to make it work in single run
Читать полностью…Stop catching every exception and you will see what's going on. Especially where.
Читать полностью…Yep i tried that but it didn't work..the issue is i have to use **kwargs in my tool function and the method which it suggests with that i should make a schema and then use it but i have to use kwargs for some special cases
Читать полностью…Rule 5️⃣: Never post walls of text or screen photos. Use paste bins like https://dpaste.org, https://hastebin.com, https://bin.kv2.dev or your favorite one!
Читать полностью…Can anybody suggest some websites for good (challenging) problems for beginners in python???
Читать полностью…I don't think you understand return
yet. Please read this article: https://python.land/introduction-to-python/functions
You don't need to use return even if a function has parameters. You simply use it to return a value.
Читать полностью…If the question can be solved without using in-built functions but it may be larger...
Читать полностью…No, you paste there, save it and paste here the generated URL
Читать полностью…If it's python the yes. But we also have a Django specific group: @django
Читать полностью…Hi everyone,
I'm new to computer programming but very passionate about programming. Could someone help me learn well through documentation and others? Thanks in advance
I was looking for another alternative than the official becoz I can’t access meta api
Читать полностью…It gets json string which is taken by query argument and since kwargs is there unused so its leading to too many arguments...i have to use both
Читать полностью…So when you are callig the tool you are sending the wrong params it expects a query dic but it gets two strings instead
Читать полностью…Hey folks...need some help
this is my tool function
https://hastebin.com/share/qaruguxawa.python
and this is error
ToolMessage(content='Error: ToolException("Too many arguments to single-input tool Tavily.\n Consider using StructuredTool instead. Args: ['israel and iran war 2025', 'tvly-dev-8Wgjmvd1ZymvCvcX5FgsmT3AorWZ']")\n Please fix your mistakes.', name='Tavily',
Does anyone know how to fix it
Yeah, I had a wrong assumption...Now it's clear. Thanks!!!
Читать полностью…My last question, plz ans it!!!
What someone means by returning a value...
I mean how do we coders get to know whether the code returns a value or not if we do not print it??
Yeah, if there is a function which doesn't need any parameters, then it's working without return statement
Читать полностью…