Skip to content
Advertisement

convert script from javascript to python [closed]

i need help i would like to convert this code to python is there anything online that will turn me into a python? from javascript? the question is how can I convert it online?

JavaScript

this have in python

JavaScript

how do i convert slice? and change the order of the digits?

Advertisement

Answer

I believe this does what you ask. Some of this is silly. It splits the number up into digits, then prints the individual digits in the same order.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement