initialise and questions draft

This commit is contained in:
SebastianoF committed 2019-11-17 19:58:22 +00:00
1 parent 8cfa5c6689
commit 27b9f02e13
3 files changed
+18 -3

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
.ipynb_checkpoints/
__pycache__
venv
.idea
.vscode
+13
View File
@@ -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}'])
+4 -3
View File
@@ -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
""",