0

Can someone pls review this code and help me to reduce the code?

https://code.sololearn.com/cbGYrIKHgBsb/?ref=app

25th Dec 2021, 7:59 AM
pranav sridhar
pranav sridhar - avatar
2 Respuestas
+ 1
I would say it is an unnecessarily difficult solution. It will be quicker through the strings (maximum 4 lines of code). 1. Translate the number into a string and you get the power. 2. Split it in to array 3. Use the "list comprehensive" to summarise all the items.
25th Dec 2021, 9:13 AM
Alexey Kopyshev
Alexey Kopyshev - avatar
0
Thank you
30th Dec 2021, 5:03 AM
pranav sridhar
pranav sridhar - avatar