Answered step by step
Verified Expert Solution
Question
1 Approved Answer
[ 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.
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started