The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 6 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Function Name:defineTAs (15 points)
Description:Define a function that accepts a tuple of tuples as the parameter. Each tuple contains information regarding the TAs. Every index in the tuples corresponds to a TA, and a TA is only associated withone index. The function should concatenate the company that a TA worked for, the name of the TA, and the age of the TA into a TA bio(represented as the following: Company: Name, Age)and return a tuple of all of the concatenated TA bios.
Parameter(s):
1. A tuple of tuples. All of the tuples are equal in length.
a. Eachelementofthefirsttupleisaname(asastring).
b. Each element of the second tuple is the age (as aninteger).
c. Eachelementofthethirdtupleisthecompanythatthecorresponding
person worked at (as astring).
Return Value:A new tuple with the correct values. Each element of the new tuple
is a string of the concatenated company, name, and age (in that order).
Assumption(s):
•Each of the tuples are in a specific order. Therefore, you only need to worry about the index to create the TA bios.
Example(s):
>>> information_tuple = (("Nico", "Daniel", "Rachel"), (21, 20, 19), ("Google", "Workday", "Ultimate Software"))
>>> print(defineTAs(information_tuple)
('Google: Nico, 21', 'Workday: Daniel, 20', 'Ultimate Software: Rachel, 19')
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll