[Python] How to print the 3rd digit of a number? [duplicate]

Discussão em 'Python' iniciado por Stack, Julho 26, 2025.

  1. Stack

    Stack Membro Participativo

    N=int(input("Enter the number: "))
    N=N-((N//10)*10)
    print(N)


    This code is only valid for 3 digits.

    I want a code for any number with any number of digits.

    Continue reading...

Compartilhe esta Página