Computer Science, asked by ashreya1906, 4 months ago

Write the output of the following code:

str2=list(“Cam@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)

Answers

Answered by jai696
7

\huge\red{\mid{\fbox{\tt{ANSWER}}\mid}}

['CC', 'a', 'm', '@', 'D', '22', 'D', '*']

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by mdsaifquraishi
1

Answer

['CC', 'a', 'm', '@', 'D', '22', 'D', '*']

Similar questions