id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

nonintersect


Given two sets of lists, return every non-intersecting element in a them (starting with the first, then the second). Terminate repeats


nonintersect(['Hello'], ['World']) → ['Hello', 'World']
nonintersect(['Every', 'Body'], ['Some', 'Body']) → ['Every', 'Some']
nonintersect([1, 2, 3, 4, 5, 6, 7, 8, 9], [9, 8, 7, 6, 5, 4, 3, 2, 1, 1, 1, 1]) → []

...Save, Compile, Run (ctrl-enter)

def nonintersect(list1, list2):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 200 Post-solution available

Copyright Nick Parlante 2017 - privacy