Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 1.75 KB

return_value.md

File metadata and controls

13 lines (11 loc) · 1.75 KB

Return value

TODO: ADD MORE

  • the knowledge of return statement could be a useful concept in this exercise variable-length-quantity
  • the function must return a number (int) hamming
  • Most of the functions in the example solution specify a return value using the return keyword. markdown
  • the exercise must use a return statement to return a value to the caller leap
  • this function return a string by this line: return text[::-1] reverse-string
  • the return keyword is used in a return statement at the end of a function. Exits a function and may or may not pass data or an expression back to calling code. Functions in python without an explicit return keyword and statement will return (pass back) the singleton object none. The example code returns a copy of the passed-in argument (assumed to be a string) that has been mapped through str.translate(), using the table made from str.maketrans() rna-transcription
  • knowing that functions need not have explicit return statements or values but will return None if return is not specified. Except for the two @property-decorated functions, all functions in the example omit an explicit return statement and all return None. robot-simulator
  • the knowledge of return statement could be a useful concept in this exercise variable-length-quantity
  • "row" and "column" list values are expected from defined instance method(s) matrix