×
all 2 comments

[–]IvoryJam 7 points8 points  (0 children)

First off, https://www.reddit.com/r/learnpython/wiki/faq/#wiki_how_do_i_format_code.3F

I formatted it manually, but each function has the doc-string telling you what that function should accept and what it's expect output be. That's the """some stuff here""" is

This isn't a quiz, this is a project. You apply the things you've learned to make each function do what its doc-string says it does.

[–]PureWasian 3 points4 points  (0 children)

Each function needs to be completed with the code to run it correctly. pass is just a placeholder for the empty function body which you need to implement. For example:

def add_numbers(param1, param2): """ :param n1: float - first number :param n2: float - second number :return: float - sum of n1 and n2 """ pass

You could fill it in such as: def add_numbers(n1, n2): """ :param n1: float - first number :param n2: float - second number :return: float - sum of n1 and n2 """ sum = n1 + n2 return sum

More from r/learnpython

  Hide