logo

Crowdly

What is the output of the following code? def func(s, c): return [i for ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output of the following code?

def func(s, c):

return [i for i, x in enumerate(s) if c == x]

func('toto', 'o')

33%
0%
0%
67%
More questions like this

Want instant access to all verified answers on moodle.essec.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!