Question: [ 3 0 points ] You have a list of transaction strings, where each string contains two IBANs separated by a colon ( : )

[30 points] You have a list of transaction strings, where each string contains two
IBANs separated by a colon (:). The first IBAN is the sender's, 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:
"TR72-6372-7372-0828-1728-1782-11:US18-7272-9710-8619-1826-6384-82"
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.
 [30 points] You have a list of transaction strings, where each

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!