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 .
The answer would be B. An increase in the price of a complement.
Answer:
Change it however you'd like
Explanation:
from math import pi
def findArea(rad):
return (rad**2) * pi
#test
print(f"Area of the circle: {findArea(5)}")
The European plug takes up 220 volts while the American one takes 110 volts.
Answer:b)Reserve Room, Enter Contact Information, Enter Reservation Detail
Explanation: The use case is described as actors , actors goal, usage of use cases, units of scope and initial point and terminating point of use cases .
The situation mentioned in the question will take place for the reservation of the room through the instances in the form like filling the contact details for the identification , filling out reservation information as well for getting the knowledge about the room requirement by the person.
These details help in reaching out the particular person if required, number of days he wants to book the room,any extra facility he would like to have etc. After these detail filling activity the room can be reserved successfully.Thus , the most appropriate option is option (b).
Other options are incorrect because room reservation cannot be done without any formality as mentioned in the question and entering contact detail and reservation detail one by one.