datingTrack): def combineInfo(profileInfo, Specific Restrictions (in addition to the general restrictions above): o You are only allowed.append(), len(), range(), .insert(), .extend() o You may not use sets or dictionaries Description: Given a 2D list (a list of lists) of profileInfo containing each member's name and their profile ID and given a 2D list (a list of tuples) of dating Track containing profile ID and total number of dates gone on, append to the profile Info the total dates gone on. Parameters: profileInfo is a 2D list (a list of lists) of variable size that contains member name (string) and profile ID (string). datingTrack is a 2D list (a list of tuples) of variable size containing member profile ID (string) and total dates gone on (int). Return value: None. The list profile Info is modified in place, and after modification, it is a list of lists in this format: [[name (string), profile ID (string), total dates gone on (int)]]. Assumptions: Both list inputs will never be empty. All input values are always valid values. The order of profileInfo in each sublist is always name first then ID. The order of datingTrack in each tuple is always ID first then total dates. There could be IDs in the profileInfo list that are not in the dating Track list and vice versa (see examples below). Examples: profileInfo = [["Stephanie Jones", "B001"], ["Judith Schmitt", "B002"]] datingTrack = [("B002", 3), ("B001", 5)] combinelnfo(profilelnfo, dating Track) print(profilelnfo) #nothing is returned! #[['Stephanie Jones", "B001", 5], [Judith Schmitt', 'B002", 3]] profileInfo= [["Anahi Saunders", "B111"], ["Thaddeus Huff", "B222"], ["Deven Holden", "B333"]] datingTrack = [("B111", 4), ("B333", 2)] combinelnfo(profileInfo, dating Track) print(profileInfo) #nothing is returned! #[['Anahi Saunders", "B111", 4], ["Thaddeus Huff', 'B222"], ['Deven Holden', 'B333', 2]] profileInfo= [["Anahi Saunders", "B111"], ["Thaddeus Huff", "B222"], ["Deven Holden", "B333"]] dating Track = [("B444", 4), ("B555", 2)] combineinfo(profilelnfo, dating Track) print(profilelnfo) #nothing is returned! #[['Anahi Saunders", "B111'], ['Thaddeus Huff, "B222'], ['Deven Holden', 'B333"]] Explanation: We will loop through both lists given and compare values. We compare the profile ID found in the profilelnfo list with the profile ID found in the dating Track list, once there is a match, we append the second value in the tuple of that matched dating Track item as the last item of the sublist in profileinfo. If no matches found, profilelnfo is not modified.
datingTrack): def combineInfo(profileInfo, Specific Restrictions (in addition to the general restrictions above): o You are only allowed.append(), len(), range(), .insert(), .extend() o You may not use sets or dictionaries Description: Given a 2D list (a list of lists) of profileInfo containing each member's name and their profile ID and given a 2D list (a list of tuples) of dating Track containing profile ID and total number of dates gone on, append to the profile Info the total dates gone on. Parameters: profileInfo is a 2D list (a list of lists) of variable size that contains member name (string) and profile ID (string). datingTrack is a 2D list (a list of tuples) of variable size containing member profile ID (string) and total dates gone on (int). Return value: None. The list profile Info is modified in place, and after modification, it is a list of lists in this format: [[name (string), profile ID (string), total dates gone on (int)]]. Assumptions: Both list inputs will never be empty. All input values are always valid values. The order of profileInfo in each sublist is always name first then ID. The order of datingTrack in each tuple is always ID first then total dates. There could be IDs in the profileInfo list that are not in the dating Track list and vice versa (see examples below). Examples: profileInfo = [["Stephanie Jones", "B001"], ["Judith Schmitt", "B002"]] datingTrack = [("B002", 3), ("B001", 5)] combinelnfo(profilelnfo, dating Track) print(profilelnfo) #nothing is returned! #[['Stephanie Jones", "B001", 5], [Judith Schmitt', 'B002", 3]] profileInfo= [["Anahi Saunders", "B111"], ["Thaddeus Huff", "B222"], ["Deven Holden", "B333"]] datingTrack = [("B111", 4), ("B333", 2)] combinelnfo(profileInfo, dating Track) print(profileInfo) #nothing is returned! #[['Anahi Saunders", "B111", 4], ["Thaddeus Huff', 'B222"], ['Deven Holden', 'B333', 2]] profileInfo= [["Anahi Saunders", "B111"], ["Thaddeus Huff", "B222"], ["Deven Holden", "B333"]] dating Track = [("B444", 4), ("B555", 2)] combineinfo(profilelnfo, dating Track) print(profilelnfo) #nothing is returned! #[['Anahi Saunders", "B111'], ['Thaddeus Huff, "B222'], ['Deven Holden', 'B333"]] Explanation: We will loop through both lists given and compare values. We compare the profile ID found in the profilelnfo list with the profile ID found in the dating Track list, once there is a match, we append the second value in the tuple of that matched dating Track item as the last item of the sublist in profileinfo. If no matches found, profilelnfo is not modified.
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
in python please
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education