Check sibling questions
Computer Science - Class 12
Solutions to CBSE Sample Paper - Computer Science Class 12

Predict the output of the Python code given below:




while I>=0:

    if Text1[I]>="0" and Text1[I]<="9" :




    elif Text1[I]>="A" and Text1[I]<="Z" :

        Text2= Text2+(Text1[I-1])




print (Text2)


Answer by student

The output of the Python code is 12108*YX6 .

Detailed answer by teachoo

The rest of the post is locked. Join Teachoo Black to see the full post.

Ask a doubt
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 13 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.