initialise and questions draft
This commit is contained in:
parent
8cfa5c6689
commit
27b9f02e13
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
.ipynb_checkpoints/
|
.ipynb_checkpoints/
|
||||||
|
__pycache__
|
||||||
venv
|
venv
|
||||||
.idea
|
.idea
|
||||||
.vscode
|
.vscode
|
||||||
|
13
initalise.py
Normal file
13
initalise.py
Normal 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}'])
|
@ -2,7 +2,8 @@
|
|||||||
qha = {
|
qha = {
|
||||||
"q1": "1. Import the numpy package under the name `np` (★☆☆)",
|
"q1": "1. Import the numpy package under the name `np` (★☆☆)",
|
||||||
"h1": "hint: import … as ",
|
"h1": "hint: import … as ",
|
||||||
"a1": """
|
"a1":
|
||||||
|
"""
|
||||||
import numpy as np
|
import numpy as np
|
||||||
""",
|
""",
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user