How to Think Like a Computer Scientist: Learning with Python3
Chapter 7 Exercises
Question 15.
15. Write a function num_even_digits(n) that counts the numberof even digits in n. These tests should pass:
test(num_even_digits(123456) == 3)
test(num_even_digits(2468) == 4)
test(num_even_digits(1357) == 0)
test(num_even_digits(0) == 1)
How to Think Like a Computer Scientist: Learning with Python 3 Chapter 7 Exercises Question 15. 15. Write a function num
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am