From e353ac957182be31e153687265ebf4cdbf2e9c25 Mon Sep 17 00:00:00 2001 From: ali-ramadhan Date: Wed, 17 Jul 2019 10:53:08 -0400 Subject: [PATCH] Add func sig and stub for Note G. Resolves #40 --- .../templates/problems/ada-lovelaces-note-g.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/problems/templates/problems/ada-lovelaces-note-g.html b/src/problems/templates/problems/ada-lovelaces-note-g.html index 2e4a60a..abbea35 100644 --- a/src/problems/templates/problems/ada-lovelaces-note-g.html +++ b/src/problems/templates/problems/ada-lovelaces-note-g.html @@ -59,7 +59,18 @@ {% block examples %} {% endblock %} +{% block function_signature %} +bernoulli(n) +{% endblock %} + {% block python_code_stub %} +from fractions import Fraction +from math import factorial + +def bernoulli(n): + numerator, denominator = 0, 0 + + return numerator, denominator {% endblock %} {% block javascript_code_stub %}