Question: Answer all the following questions: * Note: Solve all the following questions using Python only. Do NOT use Numpy or any other libraries for this

 Answer all the following questions: * Note: Solve all the following

Answer all the following questions: * Note: Solve all the following questions using Python only. Do NOT use Numpy or any other libraries for this problem. A-1: State the purpose and usage of len() function. Let l1 be a list of 5 elements, and 12 be a list con- taining 10 lists, where each inner list contain 3 elements. What will be the result of print(len(11)) and print(len(12)). A-2: State the purpose and usage of enumerate() function. Let ll be a list of 5 elements. What will be the result of print(list(enumerate(11))) and print (dict(enumerate(11))). A-3: Create and print a new list containing the following elements using list comprehension: [1, -1, 2, -2,3, -3, ..., 9, -9] A-4: State the purpose and usage of str.replace(), str.join() and str.split() functions. Which of the above functions transforms a string into a list of strings? Which of the above functions transforms a list of strings into one string? A-5: Consider the following coded string. Create a list of words (all contiguous characters) in the order of their appearance. "Rfc 'cqr npmep_kq _pc upgrrcl qm rf_r amknsrgle k_afglcq a_l ncpdmpk rfck osgaijw?jqm* rfc 'cqr nomep_kq -pc upgrrcl qm rf_r fsk_1 'cgleq a_l slbcpqr_lb rfck ajc_pjw, ? emmb cqq_wgqr lb emmb nomep_kkcp f_tc jmr gl amkkml

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!