diff --git a/.gitignore b/.gitignore index 00dd6ea..49c8b28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .ipynb_checkpoints/ +__pycache__ venv .idea .vscode diff --git a/initalise.py b/initalise.py new file mode 100644 index 0000000..46e4d92 --- /dev/null +++ b/initalise.py @@ -0,0 +1,13 @@ +from questsions_dict import qha + + +def question(n): + print(qha[f'q{n}']) + + +def hint(n): + print(qha[f'h{n}']) + + +def answer(n): + print(qha[f'a{n}']) diff --git a/questsions_dict.py b/questsions_dict.py index d6b1dbb..929efd7 100644 --- a/questsions_dict.py +++ b/questsions_dict.py @@ -1,8 +1,9 @@ qha = { -"q1" : "1. Import the numpy package under the name `np` (★☆☆)", -"h1": "hint: import … as ", -"a1": """ + "q1": "1. Import the numpy package under the name `np` (★☆☆)", + "h1": "hint: import … as ", + "a1": +""" import numpy as np """,