logo

Crowdly

What is the output of the following code? x=0 chr="maison" for car in chr: ...

✅ 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?

x=0

chr="maison"

for car in chr:

if car in "aeiouy":

x+=2

else:

x+=1

print(x)

75%
0%
25%
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!