Re: Any idea how i can format my output file with********************Start file*********************

Discussion in 'Python' started by Peter Otten, Feb 9, 2013.

  1. Peter Otten

    Peter Otten Guest

    Morten Engvoldsen wrote:

    > I know i can append "***************Start file***********" in the
    > batchdata, but is there a better python code like multiply * into 10 times
    > -- any python code i can add the formatting in dynamic way instead of
    > hardcoding with "***************Start file***********" line.

    >>> print " Start file ".center(40, "*")

    ************** Start file **************
    Peter Otten, Feb 9, 2013
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page