[Python] How to change the basic commands in Python to your own?

Discussão em 'Python' iniciado por Stack, Maio 17, 2025.

  1. Stack

    Stack Membro Participativo

    I have a question about how to replace Python with one library. I am creating my own PyEasy library and judging by the name you understand it simplifies Python programming. There is one but: I want to replace the commands that I know with the type of command a person would give. Except for the import pyeasy command of course.

    For example:

    import pyeasy
    Say("Hello World!")


    The output will be Hello World!

    And if so?

    import pyeasy
    repeat:
    say("PyEasy is too easy!")


    If this is deciphered into human commands then you need to endlessly say PyEasy is too easy! But my built-in code checker on PyCharm says that simply while True will not help and a command is needed.

    Now the error is Indent expected :7

    Continue reading...

Compartilhe esta Página