Login and get coding
Your team uses
Sphinxand wants you to comply with its standards for
docstrings. As per the Sphinx-RTD-Tutorial a typical
Sphinxdocstring has the following format:"""[Summary] :param [ParamName]: [ParamDescription], defaults to [DefaultParamVal] :type [ParamName]: [ParamType](, optional) ... :raises [ErrorType]: [ErrorDescription] ... :return: [ReturnDescription] :rtype: [ReturnType] """
Based on this format and using the literal strings in italics below, write a docstring for
- has Sums numbers for the Summary part,
- receives numbers: a list of numbers (type:
- raises a TypeError: if not all numeric values passed in,
- and returns sum of numbers (type:
There's no need to implement the function (leave the
passin) as this is about writing the proper
Note:We will be adding annotations to this function in the next Bite so you will need to complete this Bite to unlock the next.
254 out of 259 users completed this Bite.
Will you be Pythonista #255 to crack this Bite?
Resolution time: ~25 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 1.5 on a 1-10 difficulty scale.
» You can do it! 😌