r/Python • • Mar 03 '16

Top 30 Mind Bending Python Interview Questions

https://intellipaat.com/interview-question/python-interview-questions/
0 Upvotes

8 comments sorted by

View all comments

2

u/notspartanono Mar 03 '16

So wrong:

def cmp(intellipaatlist1, intellipaatlist2):
    for val in intellipaatlist1:
        if val in intellipaatlist2:
            return True
    return False

WTF.