in Education by
Write the output of the following code: str2=list(“***@123*”) for l in range(len(str2)-1): if l==5: str2[i]=str2[i]*2 elif(str2[i].isupper( )): str2[i]=str2[i]*2 elif (str2[i].isdigit( )): str2[i]=’D’ print(str2) Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
[‘CC’, ‘a’, ‘m’, ‘@’, ‘D’, ’22’, ‘D’, ‘*’]

Related questions

0 votes
    Write pseudo code to count occurrence of a given number in the list. For example, consider the following list, if ... in the list. Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    >>> list(range(0, -9,-1)) will print [-1, -2, -3, -4,-5, -6, -7, -8) [0,-1, -2, -3, -4,-5, -6, -7, -8 ... [0,-1, -2, -3, -4,-5, -6, -7] Select the correct answer from above options...
asked Dec 28, 2021 in Education by JackTerrance
0 votes
    1. Predict the output of the following operations if x=5 and y=3. x>=10&& y>=4 f. x>=1 || y>=4 Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Question No.1: What do you understand about container tag and empty tag, give example? Question No.2: What do ... all the attributes? Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    Write a program Using random number generation create a file of 10000 integers in the range 1 to 20000 Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    What will be the output produced by following code statements? State reason(s). i. (17%5) == (17%5.0) ii. (87 // 5 ... int((87 / 5.0)) Select the correct answer from above options...
asked Dec 19, 2021 in Education by JackTerrance
0 votes
    What will be the output produced by following code statements? State reason(s). i. (17%5) == (17%5.0) ii. (87 // 5 ... int((87 / 5.0)) Select the correct answer from above options...
asked Dec 18, 2021 in Education by JackTerrance
0 votes
    In Java, what will be the output of the following code and how? double x=2.9,y=2.5; (SOP is abbreviated form ... x),y)); Explain how Select the correct answer from above options...
asked Nov 28, 2021 in Education by JackTerrance
0 votes
    Let a(l), b(l) represent in input-output pairs, where l varies in natural range of no.s, then if ... heteroassociation (d) none of the mentioned Please answer the above question....
asked Sep 3, 2022 in Education by JackTerrance
0 votes
    Write the HTML code to get the line with 5 as thickness, length 50% and color as red Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    What is the output of len([1, 2, 3])?...
asked Nov 26, 2020 in Technology by JackTerrance
0 votes
    Suppose L= [10, [ Kavya , Joshika , Deepa ],3,'Harini'] Consider the above list and answer the ... . computer class 11 python Select the correct answer from above options...
asked Dec 20, 2021 in Education by JackTerrance
0 votes
    write the steps for moving the first line on the paragraph to 1.5 cm from margin in a computer system Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    Write html code to set the BGCOLOR as NAVY, header 1 text Text Example with size, colour and font face'' as ... font face ARIAL . Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
...