O GoConqr está de visual novo! Conte para nós o que você achou.

Módulo 17 de 20 · Texto

The print() function - the keyword arguments 3

David Khieu

The print() function - the keyword arguments

We've said previously that the print() function separates its outputted arguments with spaces. This behaviour can be changed, too. 

The keyword argument that can do this is named sep (like separator)

Look at the code in the editor and run it. 

The sep argument delivers the following results: 

My-name-is-Monty-Python.

The print() function now uses a dash, instead of a space, to separate the outputted arguments. 

Note: the sep argument's value may be an empty string, too. Try it for yourself. 

 

Instruções

Para avançar no curso, envie uma tentativa deste quiz. Você pode enviá-la depois da última pergunta.

Ir para o módulo escolhido

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?