College Algebra with Python: Learn Functions and Graphing

In the section Functions of the Learn Functions and Graphing is a question that has all answers correct, but is set that one of them is correct.


After defining a function in Python, indent each line of the function how many spaces?


  • 2
  • 3
  • 4
  • 5

In python, no matter if it is used inside a jupyther notebook or within Google Colaboratory number of spaces can vary but it must be greater than 0.

The other problem with this question is if to follow the answer from the video, the instructor said 4 spaces, but as he was pressing arrow keys over his own indentation, there is a total of 3 spaces, which is contradictory to himself saying it is 4 spaces.

In my opinion any of the given answers should be accepted as the correct answer.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.