Q. What will be the output of given Python code?
Code:
str1="hello"
c=0
for x in str1:
if(x!="l"):
c=c+1
else:
pass
print(c)
β
Correct Answer: (C)
3