You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Did you define the variable find_members without errors?
Yet, this code is identical (ignoring whitespace) to the solution, except that I named my variable "find_functions" instead of "find_members".
Could the code evaluation be changed to just parse the program output, instead of looking for a specific implementation?
Someone I know showed me his solution to this exercise, and I noticed that it didn't use any variable. He used a list comprehension, with a conditional clause:
print(sorted([xforxindir(re) if"find"inx]))
I entered that, and it, too, got flagged with:
Did you define the variable find_members without errors?
Yet since list comprehensions haven't yet been discussed in the tutorial, I understand why this wasn't given as the solution.
The text was updated successfully, but these errors were encountered:
In the learnpython.org tutorial's "Modules and Packages" Exercise, the RUN button flagged my exercise answer code:
as erroneous. It complained:
Yet, this code is identical (ignoring whitespace) to the solution, except that I named my variable "find_functions" instead of "find_members".
Could the code evaluation be changed to just parse the program output, instead of looking for a specific implementation?
Someone I know showed me his solution to this exercise, and I noticed that it didn't use any variable. He used a list comprehension, with a conditional clause:
I entered that, and it, too, got flagged with:
Yet since list comprehensions haven't yet been discussed in the tutorial, I understand why this wasn't given as the solution.
The text was updated successfully, but these errors were encountered: