• Bug in default `check_solution`

Question related to mission Codeship

 

Line 35:

        if not isinstance(user_result, str) and user_result not in DIRS.keys():
            print("You should return a string with an action.")
            return False

If `user_result == ""` this block will not run. I think it's supposed to be `or` instead of `and`. But furthermore, the first condition is unnecessary, since `DIRS.keys()` contains only strings. You can just use the code like this:

        if user_result not in DIRS.keys():
            print("You should return a string with an action.")
            return False