fork download
  1. def titulo(msg):
  2. tam = len(msg) + 4
  3. print('=' * tam)
  4. print(f'{msg:^{tam}}')
  5. print('=' * tam)
  6.  
  7. titulo('TRATAMENTO DE ERROS E EXCESSÕES')
  8.  
  9. #https://pt.stackoverflow.com/q/431508/101
Success #stdin #stdout 0.02s 9232KB
stdin
Standard input is empty
stdout
===================================
  TRATAMENTO DE ERROS E EXCESSÕES  
===================================