jeff1evesque / interview-twitter

Least Common Ancestor
2 stars 0 forks source link

issue input() upon wrong submitted values. #15

Open jeff1evesque opened 10 years ago

jeff1evesque commented 10 years ago

The following is one instance we need to correct:

MacBook-Pro-15:least-common-ancestor jeffrey$ python least_common_ancestor.py
Would you like to enter values?
p
Not a valid input.  Please enter 'yes', or 'no'
Traceback (most recent call last):
  File "least_common_ancestor.py", line 83, in <module>
    root = definitions_class.Node(cast_type(data_root[0]))
NameError: name 'data_root' is not defined