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 .
Answer:
d all of above cause from tht all we can navigate through our pc
;l p lm k nnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
Well that would depend the type of graph you’re titling and what the information on the graph holds.
There are:
Bar graphs
Pie graphs
Line graphs...etc.
Then, you need to think about what
the graph is representing.
For example: you could say there is a bar graph determining how many 5th grade students prefer vanilla over chocolate ice cream. You could title this graph “preferred ice cream flavors”
Hope this helps!! Have a great night.
~Brooke❤️
To make your programs more attractive and user friendly.