initialise and questions draft

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

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
.ipynb_checkpoints/
__pycache__
venv
.idea
.vscode

13
initalise.py Normal file
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}'])

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
""",