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
7
['CC', 'a', 'm', '@', 'D', '22', 'D', '*']
Answered by
1
Answer
['CC', 'a', 'm', '@', 'D', '22', 'D', '*']
Similar questions