Computer Science, asked by shivamtiwari99988, 2 months ago

Find the output of the program: 3

Str1="EXAM2021"

Str2=""

I=0

while I<len(Str1):

if Str1[I]>="A" and Str1[I]<="M":

Str2=Str2+Str1[I+1]

elif Str1[I]>="0" and Str1[I]<="9":

Str2=Str2+ (Str1[I-1])

else:

Str2=Str2+"*"

I=I+1

print (Str2)​

Answers

Answered by smitasunu1421
0

Answer:

print is the programme

Similar questions