B01C-2016D – Computer Sir Ki Class

Login


Lost your password?

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

Login
[lwa]



Exam Questions-CBSE12D-2016-B01C #PYTHON#6449    siteicon   siteicon  

Problem Statement - B01C-2016D

Rewrite the following code in python after removing all syntax error(s). Underline each correction done in the code.

for Name in [Amar, Shveta, Parag]
    IF Name[0]='S':
        print(Name)

Solution

TC++ #6449

for Name in [ " Amar " , " Shveta " , " Parag " ] : // ' ' can be used
    if Name[0] == 'S':
        print(Name)


Share

CSKC| Created: 12-Jan-2019 | Updated: 12-Jan-2019|CBSE12D-2016









Back