Challenges β’ Asked almost 2 years ago by Kaitlin
Can you tell me what's wrong here?
My solution isn't running in the AlgoDaily IDE. The error says: "No Output."
However, the seems to return the correct result when I run it in Python on my Terminal.
Screenshot from Algo Daily: https://ibb.co/r4T39fp
Screenshot of my Terminal: https://ibb.co/Z26S66y
Why doesn't this run? Also, the Python solution given for sets in this example is incomplete. In the Javascript video, the set solution is shown with a filter method, which isn't included at all in the Python solution, which seems to try to recursively call on itself. This solution should probably be updated with the line that runs a filter with lambda function.
===
EDIT 1: Realizing that trying to add images with markdown that were uploaded to ImgBB doesn't actually work on this forum, so displaying screenshots inside this post is impossible... ππ Here are the links to click on to see the images hosted on ImgBB.
EDIT 2: Realizing that markdown for including links ALSO doesn't work on this forum. ππ So, copy-pasting the links would be necessary to view these images.
Hmm...maybe fixing the forum so that Markdown is enabled, or removing the toolbar and illusion that this feature is possible, would be a first priority over fixing the incorrect Python solution code and broken Python IDE. I don't know.
Hi Kaitlin,
In your screenshot, it appears you're not actually invoking or logging the function.
You need to actually call intersection(first, second)
and then actually print it, something like:
print(intersection(first, second))
We'll update that screen to make it more clear!
Ah thanks for that, Jake! Really silly mistake on my part. Appreciate your response!
This is useful information !