[Python] windows cmd auto-indent for python codes problem

Discussão em 'Python' iniciado por Stack, Março 27, 2025.

  1. Stack

    Stack Membro Participativo

    This is my simple python code that i used to simply paste using right-click or ctrl+v in windows 10.

    In windows 11, the cmd or terminal wants to help me but is ruining my code and wasting my time. what is the reason behind this auto-indent? do developers really want us to work more for launching a multiline python code so we take python seriously?

    number = 24
    divisors = [2, 3, 4, 5, 6]

    for d in divisors:
    if number % d == 0:
    print(f"{number} is a multiple of {d}")
    else:
    print(f"{number} is not a multiple of {d}")


    but after pasting: (this auto-indent is not helping) it actually creates some errors and wastes my time. for example sometimes if my code has 1000 lines i have to stay awake for a night to type the code line by line.

    [​IMG]

    Continue reading...

Compartilhe esta Página