import nbinteract as nbi
short_answer = nbi.short_answer(
'What is 1+1?',
answers='2',
explanation='1+1 is 2'
)
short_answer
short_answer = nbi.short_answer(
'Enter the first name of a member of the Beatles:',
['John', 'Paul', 'George', 'Ringo']
)
short_answer
short_answer = nbi.short_answer(
'Enter an even number:',
lambda x: int(x) % 2 == 0
)
short_answer