[Python] Swap first and last digits of a number( using loops)

Discussão em 'Python' iniciado por Stack, Dezembro 9, 2024.

  1. Stack

    Stack Membro Participativo

    How would you swap the first and last digits of a number using loops in python? Eg. Input:2665 Output:5662

    Continue reading...

Compartilhe esta Página