Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Exibir uma lista de forma organizada com pprint()
- Requer Python 3.4 ou superior
- Testes realizados no Python 3.8 e 3.9
- -
- Outras informações:
- https://docs.python.org/3/library/pprint.html
- -
- Diego Mendes Rodrigues
- """
- import pprint
- cores = ['vermelho', 'laranja', 'amarelo', 'verde', 'azul', 'anil', 'violeta']
- cores.insert(0, cores[:])
- pp = pprint.PrettyPrinter(indent=2)
- pp.pprint(cores)
Add Comment
Please, Sign In to add comment