Good day! Interested in such a question.
Suppose that there is such a code:
a = line ( range ( 1 , 11 )) print (a) he will display [1, 2, 3, 4, 5, 7, 8, 9, 9, 9, 9, 9, 9 10]
I have the question: is it possible to somehow divide the two-digit number 10 into two separate elements of the sheet, i.e. To make the leaf look like this:
[1, 2, 3, 4, 5, 6, 7, 8, 9, 1, 0]
If the question is "" nafig "" in general, I can explain. b Сode> (they are set by the user), then calculate how many times certain numbers are found and out to the screen.
To determine the numbers, I use the function cub (a la b = a.count (1) ), but of course the figure is only once (only once (which is only once (which is only once (which is only once (which is only once (which is only once (which is only once ( Sadly, but not surprising).
I hope for your advice. It is possible (and even most likely), there is a much easier way to solve this problem, but we are not looking for easy ways.
Thank you all for the detailed answers! I will test all the presented solutions!
question@mail.ru
·