Can anyone go over the code and suggest any edits and/or efficient solutions?Attached below are the provided tasks and their solutions. The task is copyright of Cambridge International Examinations. #Nosher Zapoo 2017.#Task 1 starts here.number_of_citizens = int(input('Please Enter the number of citizens on the trip: '))#Validation Check:if number_of_citizens > 2 and number_of_citizens < 37:    if number_of_citizens > 24 :        carer = 3    else:        carer = 2else:    print('Sorry the range of people is 10 - 36. Please Try again.')    exit()#Calculating the cost using economies of scale.total_people = number_of_citizens + carerif total_people < 17:    hire = 150    cost_meal = 14*total_people    cost_ticket = 21*total_peopleelif total_people < 27:    hire = 190    cost_meal = 13.5*total_people    cost_ticket = 20*total_peopleelif total_people < 40:    hire = 225    cost_meal = 13*total_people    cost_ticket = 19*total_peopleelse:    exit()#Working out the total costtotal_cost= hire + cost_meal + cost_ticketavg_cost= total_cost / number_of_citizensprint('Number of Citizens = ',number_of_citizens)print ('Total Cost = $', total_cost)print ('Cost per Person = $', avg_cost)#Task2 Starts!!!#Creating Empty Lists to append as arrays.names = []amounts = []total_amount  = 0#Using an undefined loopfor x in range (0, total_people ):    name = input('Name: ')    amount = input ('Amount: ')    names.append (name)    amounts.append (amount)    total_amount = total_amount + int(amount)#Adding Spare people and their costsif total_people < 17:    extra_people = 16 - total_peopleelif total_people < 27:    extra_people = 26 - total_peopleelif total_people < 40:    extra_people = 39 - total_peopleextra_cost = extra_people*avg_costtotal_cost = total_cost + extra_costif extra_people > 0:    print ('There are', extra_people, 'seats available. Please enter the name & amount of people joining on extra seats')    updated_people = total_people + extra_people    for x in range (total_people, updated_people):        name = input('Name: ')        amount = input ('Amount: ')        names.append (name)        amounts.append (amount)        total_amount = total_amount + int(amount)for x in range (0, updated_people):    print (names[x])#Task 3 Starts here.profit = total_amount - total_cost if profit > 0:    print ('Profit gained $', profit)elif profit == 0:    break_even_value = total_cost    print ('The Outing has broken even as the Total Cost is equal to the Total Amount.')else:    print ('The Outing is in loss of $', profit)
O Levels 2210 Computer Science Pre-Release: Senior Citizens Trip Organizer
python;programming challenge