takeoffupskill(@takeoffupskill) 's Twitter Profile Photo

🧠 Did you know? 🤔 Which keyword is used for function in Python language? 🐍

Answer: def
Explanation: The 'def' keyword is used to create (or define) a function in Python. 📝💻

🧠 Did you know? 🤔 Which keyword is used for function in Python language? 🐍

Answer: def
Explanation: The 'def' keyword is used to create (or define) a function in Python. 📝💻 

#PythonProgramming #FunctionDefinition #ProgrammingTrivia #PythonTips #LearnToCode #takeoffupskill
account_circle
patrick 🤯(@patnealoldtwit) 's Twitter Profile Photo

Awesome explanation of IIFEs the differences between FunctionDefinition and FunctionExpression in stackoverflow.com/a/1634321

account_circle
Awarau(@Awarau1) 's Twitter Profile Photo

Say you have 30 language constructs, like various iteration statements, various conditionals, various declarations, then that's a lot of classes. I guess the tradeoff is this: do you create a new class for every variant (i.e. functionDefinitionNoArgs vs. FunctionDefinition)?

account_circle
tds12(@lltds12) 's Twitter Profile Photo

FunctionDefinition.hspを読む限りモジュール指定はしないしグローバルマクロにもしないから使うときはグローバルかモジュール内で再度includeしてって感じか。

account_circle
Rajat Sandeep(@rajatsandeepsen) 's Twitter Profile Photo

Eg:

> code2prompt ./project/thatFile.ts --line=32
Q: What this function do?

LLM: I can't answer from this, so requesting for file ./project/fileThatContains/functionDefinition.ts

User: Permission granted✅

LLM: This function can do bla bla bla...

account_circle