Skip to content

Commit

Permalink
Add func sig and stub for Note G. Resolves #40
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-ramadhan committed Jul 17, 2019
1 parent c25ee04 commit e353ac9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/problems/templates/problems/ada-lovelaces-note-g.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit e353ac9

Please sign in to comment.