This one uses the in keyword, which is not counted as an "operator" (unless this is incorrect please tell me @TheDrone7). Thanks!
in
EDIT: Loops to run multiple tests.EDIT: Switched to a lambda function instead
Now that's crafty :) Should be fine since it's not a comparison operator. You could also do something similar with regex as well.
Yeah, i also did zip_longest with itertools and a combination of your strategy. i ended up just sticking with this though. @DynamicSquid
@PYer yeah, python has a lot of neat tricks that many other languages don't
oh wait, my thing doesn't work. i need to fix it. @DynamicSquid
@PYer it doesn't? worked fine for me
Now it does. @DynamicSquid
#WEEKLY #5: Equality Check
This one uses the
in
keyword, which is not counted as an "operator" (unless this is incorrect please tell me @TheDrone7). Thanks!EDIT: Loops to run multiple tests.
EDIT: Switched to a lambda function instead
Now that's crafty :) Should be fine since it's not a comparison operator. You could also do something similar with regex as well.
Yeah, i also did zip_longest with itertools and a combination of your strategy. i ended up just sticking with this though. @DynamicSquid
@PYer yeah, python has a lot of neat tricks that many other languages don't
oh wait, my thing doesn't work. i need to fix it. @DynamicSquid
@PYer it doesn't? worked fine for me
Now it does. @DynamicSquid