logo

Crowdly

Browser

Add to Chrome

What will be the output of the following code when the input is 24853? Python ...

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

What will be the output of the following code when the input is 24853?

Python Code

num = 24853

count = 0

while num > 0:

    digit = num % 10

    if digit % 2 == 0:

        count += 1

    num //= 10

print(count)

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on iitjbsc.futurense.com?

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

Browser

Add to Chrome