NeuromatchAcademy/course-content-dl

W1D5, tutorial #2, Think 3.1 and Think! 5

EitanHemed opened this issue · 1 comments

Problem description
Accessing this notebook,
submitting the answer on Think! 3.1 and Think! 5 results in NameError: name 'q1' is not defined.

Suggested solution
Change def_button_clicked current function body into the following:

def on_button_clicked(b):
   atform.add_answer('q1', text.value)
   print("Submission successful!")

The same solution can be applied to Think! 5, by changing the current function body onto:

def on_button_clicked(b):
   atform.add_answer('q2', text.value)
   print("Submission successful!")

Thanks!

fixed and merged in main. Thank you for spotting and reporting it.