This seems like an opinionated question, I suggest attempting to answer it yourself.
Answer:
new_segment = [ ]
for segment in segments:
new_segment.append({'name': segment, 'average_spend': money})
print( new_segment)
Using list comprehension:
new_segment =[{'name': segment, 'average_spend': money} for segment in segments]
Using map():
def listing(a):
contain = {'name': segment, 'average_spend': money}
return contain
new_segment = [ ]
new_segment.append(map( listing, segment))
print(list(new_segment)
Explanation:
The python codes above create a list of dictionaries in all instances using for loop, for loop in list comprehension and the map function which collect two arguments .
Whichever action you take to complete a task will inevitably affect the end result of whatever would need to be accomplished; whether this impact the task in a positive or a negative way.
A. Data Type.
Data Types can be integers, strings, chars, shorts, ect, and describes what types of values can be stored.
Answer:
A.Big,Rectangular
Explanation:
mile markers are sign on high ways they are green signs they are big and rectangular shape