About 51 results
Open links in new tab
  1. What is a DEF function for Python - Stack Overflow

    Sep 10, 2013 · I am new to coding Python and I just can't seem to understand what a Def function is! I have looked and read many tutorials on it and I still don't quite understand. Can somebody explain to …

  2. What does -> mean in Python function definitions? - Stack Overflow

    Jan 17, 2013 · def foo() -> lambda hi: True: "function body" # not a type expressions Beside the first the others have no typing meaning; but it still is valid syntax to hide a lambda definition in the return …

  3. function - what is "def" in Java class - Stack Overflow

    Jan 14, 2021 · I heard about the concept of local variable type inference in java. But it is a concept of Java 10 and I am using java 8. while googling, I find that "def" is used in python and groovy …

  4. python - Uso da função def - Stack Overflow em Português

    Nov 27, 2018 · def é uma palavra-chave de construção da linguagem, ela não é uma função, ela serve justamente para declarar e definir uma função. O seu código, pela indentação postada, não faz o …

  5. python - What does def main () -> None do? - Stack Overflow

    As is, it does absolutely nothing. It is a type annotation for the main function that simply states that this function returns None. Type annotations were introduced in Python 3.5 and are specified in PEP …

  6. How do I define a function with optional arguments?

    The arguments d through h are strings which each have different meanings. It is important that I can choose which optional parameters to pass in any combination. For example, (a, b, C, d, e), or (a, b, …

  7. Groovy: what's the purpose of "def" in "def x = 0"?

    Oct 9, 2008 · The def keyword can be removed, and this snippet would produce the same results. So what's the effect of the keyword def ?

  8. How can I return two values from a function in Python?

    I would like to return two values from a function in two separate variables. What would you expect it to look like on the calling end? You can't write a = select_choice(); b = select_choice() because that …

  9. python calling a def () inside of def () - Stack Overflow

    Aug 1, 2018 · python calling a def () inside of def () Asked 7 years, 9 months ago Modified 3 years, 7 months ago Viewed 32k times

  10. c++ - How to understand .def files? - Stack Overflow

    Aug 14, 2010 · The .def file on Win32 describes what functions get exported from a DLL. Unlike with .so files on gcc/Linux, where every symbol gets exported by default, you have to tell the compiler what …