Complete the code to split the total amount equally among all participants.
share = total_amount [1] number_of_participantsTo split equally, divide the total amount by the number of participants.
Complete the code to assign an exact amount to a participant.
participant_share = [1]Exact split means assigning a fixed amount directly.
Fix the error in the code to calculate participant share by percentage.
participant_share = total_amount [1] percentageTo calculate share by percentage, multiply total amount by the percentage.
Fill both blanks to create a dictionary comprehension for exact splits.
splits = {participant: [1] for participant, [2] in exact_amounts.items()}Use 'value' as the value and the variable from items() for clarity.
Fill all three blanks to calculate percentage splits and store in a dictionary.
percentage_splits = {participant: total_amount [1] [2] for participant, [3] in percentages.items()}Multiply total amount by the value (percentage) from the dictionary.
