fork download
  1. left = '{:<50}'.format('your string')
  2. center = '{:^50}'.format('your string')
  3. right = '{:>50}'.format('your string')
  4.  
  5. print(left)
  6. print(center)
  7. print(right)
Success #stdin #stdout 0.03s 9984KB
stdin
Standard input is empty
stdout
your string                                       
                   your string                    
                                       your string