Question: [ 3 0 points ] You have a list of transaction strings, where each string contains two IBANs separated by a colon ( : )
points You have a list of transaction strings, where each string contains two
IBANs separated by a colon : The first IBAN is the senders and the second is the
receiver's. Your task is to extract and organize this information into a structured
format and sort it based on specific criteria.
Example Input:
TR:US
Requirements:
Extract Data: Iterate over the transaction strings to separate the sender
and receiver IBANs.
Filter by TR IBANs: Only include the transactions where at least one of
the IBANs sender or receiver starts with TR
Data Structure: Create a list of dictionaries, where each dictionary has
two keys: sender and receiver.
Sorting: Sort the list of dictionaries by the sender IBAN.
Print: Print the list of dictionaries onto the console.
WARNING
Utilize ONLY lambda, filter, map, and sort functions in
Python. You are NOT allowed to use structures like if else, for,
while, etc.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
