B01D-2019S – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  

Login
[lwa]



Exam Questions-CBSE12A-2019-B01D #PYTHON#7092    siteicon   siteicon  

Problem Statement - B01D-2019S

Find and write the output of the following python code :

Msg1="WeLcOME"
Msg2="GUeSTs"
Msg3=""
for I in range(0, len(Msg2)+1):
  if Msg1[I]>="A" and Msg1[I]<="M":
    Msg3=Msg3+Msg1[I]
  elif Msg1[I]>="N" and Msg1[I]<="Z":
    Msg3=Msg3+Msg2[I]
  else:
    Msg3=Msg3+"*"
print Msg3

 

Solution

TC++ #7092


Share

CSKC| Created: 10-Apr-2019 | Updated: 10-Apr-2019|CBSE12A-2019









Back