Skip to content

Breakline doesn't appear after running main.py #16

Description

@jesusmnv

Hi guys,

I am learning about design patterns and practicing with your code.
Could you help me to understand why the break line doesn't appear after running any main.py?
image
I have already tried to change the configuration in bashrc but it only happens with python
Thanks a lot!

Activity

  1. kianbehjati commented on Sep 2, 2025

    @kianbehjati

    you're saying two last lines should be like this:

    Product parts : PartA1, PartB1
    (pyenv) jesus@jusus:...
    ?

  2. sid-146 commented on Jul 1, 2026

    @sid-146

    I ran into the same thing while trying the examples. It turned out the issue wasn't with Bash or the terminal. The sample code was using:

    print(..., end="")

    Since end="" suppresses the newline that print() normally adds, the shell prompt gets printed right after the program output, making it look like the terminal isn't moving to the next line.
    Changing it to the default:

    print(...)

    or explicitly using end="\n" fixes the behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions