+ 1
Guyz stuck in this program can't make this đ„șkindly help.
Some whole numbers can be split into smaller pieces, where each piece contains the same number of digits. For a subset of the whole numbers which can be split evenly, the pieces are in numerically increasing order. Examples: ï· 154152 can be split evenly into two-digit pieces (15, 41, 52) â increasing order ï· 154152 can be split evenly into three-digit pieces (154, 152) â not increasing order. The split can be any not specific and take input as a string.
1 Answer
+ 2
work with number as a string.
s= input()
len(s) # length of the string
end then slice it