Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

[ 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.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions