n = 320 answer = 0 while n > 0: answer = answer * 10 + (n % 10) n //= 10 print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: