human
Write a function to flatten a list and sum all of its elements. Here is a solution in Python:
Give me a the Python program you requested?
assistant
#Here is the Python program you requested.
 def recursive_list_sum(data_list):
	total = 0
	for element in data_list:
		if type(element) == type([]):
			total = total + recursive_list_sum(element)
		else:
			total = total + element
	return total