Exemplo n.º 1
0
def q_ask(qtype, tfqloc, q, mcqloc):
    '''q -= 1 because index starts at 0'''
    q -= 1
    '''If it is a T/F question,'''
    if qtype == 'tfq':
        '''Call prnt_line() function from fp to print question'''
        '''Pass respective fileloc. and q number'''
        print()
        fp.prnt_line(tfqloc, q)
        print()
    else:
        '''Prints MC question instead'''
        print()
        fp.prnt_line(mcqloc, q)
        print()
Exemplo n.º 2
0
def q_ask(q, qloc):
    print()
##    print('Question Number: ' + str(q))
    fp.prnt_line(qloc, q - 1)
    print()