Advertisement
dprincef

Untitled

Feb 28th, 2020
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. def sum_difference(f_list,s_list): #Declares a sum_diffeernce variable
  2.     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
  3.     print(a_result)
  4. sum_difference([1,2,3],[3,4,5]) #Calls the sum_difference function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement