write a program in Python to do this task
First, see if you can design an
Now write a program in Python to do this task. You may find that the algorithm that you constructed above is difficult to implement but following a kind of brute force approach similar to that in Problem 1 is not too tough.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
What if I wanted to test out a number a nine digit number with 0 in it? Would the code still be the same if I wanted to include 0 as one of the digits? For example a nine digit number like 508764319