I have a question regarding lambda functions in python. I made this general because this involves a homework assignment.
I call a function, lets say:
command prompt (ipython)>>>a = [1,2,3]
command prompt (ipython)>>>b = [1,2,3]
command prompt (ipython)>>> thingy(lambda a: a == b)
(if hello is true):
return "EPIC FAIL"
So here's the question... I HAVE NO IDEA how to test if HELLO IS TRUE within the function.
Python is new to me and I don't know much about booleans. Right now I have in place of "(if hello is true)" -- "if hello is True:"
This is not working correctly!! It doesn't return correctly. Any help would be great!