Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sum_difference(f_list,s_list): #Declares a sum_diffeernce variable
- a_result = sum(f_list) - sum(s_list) #sums the elements in the first list as well as the second list and finds their difference
- print(a_result)
- sum_difference([1,2,3],[3,4,5]) #Calls the sum_difference function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement