Computer Science, asked by Gautham30, 9 months ago

Find The Output:(python)

Str1="EXAM2018"
Str2=""
I=0
while 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 naveenjacob231
0

Answer:

201 will be the answer'

Explanation:

Similar questions