geneartors added and new md and jupyter files created
This commit is contained in:
20
initialise.py
Normal file
20
initialise.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import numpy as np
|
||||
|
||||
import data_source as ds
|
||||
|
||||
|
||||
def question(n):
|
||||
print(f'{n}. ' + ds.QHA[f'q{n}'])
|
||||
|
||||
|
||||
def hint(n):
|
||||
print(ds.QHA[f'h{n}'])
|
||||
|
||||
|
||||
def answer(n):
|
||||
print(ds.QHA[f'a{n}'])
|
||||
|
||||
|
||||
def pick():
|
||||
n = np.random.randint(1, 100)
|
||||
question(n)
|
||||
Reference in New Issue
Block a user