Q:

Write a Python program to find missing and additional values in two lists

0

Write a Python program to find missing and additional values in two lists.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

list1 = ['a','b','c','d','e','f']
list2 = ['d','e','f','g','h']
print('Missing values in second list: ', ','.join(set(list1).difference(list2)))
print('Additional values in second list: ', ','.join(set(list2).difference(list1)))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now