M

Manisha Agrawal • 9.34K Points
Tutor III

Q. Write the output of the following code

Code:
s1="csiplearninghub.com"
c=0
for x in s1:
     if(x!="l"):
          c=c+1
print(c)
  • (A) 16
  • (B) 19
  • (C) 17
  • (D) 18
  • Correct Answer - Option(D)
  • Views: 134
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics