B01C-2016 – Computer Sir Ki Class

Login


Lost your password?

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

Login
[lwa]



Exam Questions-CBSE12A-2016-B01C #PYTHON#6271    siteicon   siteicon  

Problem Statement - B01C-2016

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

for Name in [Ramesh,Suraj,Priya]
    IF Name[0]='S':
        print(Name

Solution

TC++ #6271

for Name in [ " Ramesh " , " Suraj " , " Priya " ] : // ' ' can be used
    if Name[0] == 'S':
        print(Name)


Share

CSKC| Created: 11-Jan-2019 | Updated: 11-Jan-2019|CBSE12A-2016









Back