python reduce print statement line

how to reduce print statement line to below 80 characters. still want all to be printed on a single line in console

 print("Adding model: {0} with average giveaway of {1} created at {2}, which is {3} days ago"
                      .format(m.name,
                              m.tags["Mean Giveaway(g)"],
                              m.created_time,
                              (tmzUTC.localize(datetime.utcnow()) -
                               m.created_time).days
                              )
                      )

>Solution :

Implicit string concatenation:

print("Adding model: {0} with average "
      "giveaway of {1} created at {2}, "
      "which is {3} days ago"
      .format(m.name,
              m.tags["Mean Giveaway(g)"],
              m.created_time,
              (tmzUTC.localize(datetime.utcnow()) -
               m.created_time).days
              )
      )

Leave a Reply