code-scorer-edu-v1 / README.md
cassanof's picture
Update README.md
0f7c08f
|
raw
history blame
726 Bytes
metadata
widget:
  - text: >-
      -- This function calculates the nth Fibonacci number iteratively. The
      Fibonacci sequence is a series
       -- of numbers where the next number is found by adding up the two numbers before it.
       -- For example, the sequence starting with 0 and 1 is: 0, 1, 1, 2, 3, 5, 8, 13, ....
       function fibonacci(n)
       local a, b = 0, 1
       for i = 1, n do
       a, b = b, a+b
       end
       return a
       end
    example_title: Good
  - text: |-
      def make_kill_chain_phase(kill_chain_name, phase_name):
       """
       Makes a kill chain phase for a kill chain
       """
       return {
       "kill_chain_name": kill_chain_name,
       "phase_name": phase_name
       }
    example_title: Meh