1 Matching Annotations
  1. Jan 2019
    1. def square(x): runningtotal = 0 for counter in range(x): runningtotal = runningtotal + x

      return runningtotal
      

      The indentation of return runningtotal is very important because I made a mistake by indenting it to 4 more spaces and the code wasn't working**