Python - \n
O "\n" faz parte do comando ou da apresentação, ele pula uma linha somente? Existem outras operações com o "\"?
print ("Test Tuples") myTuple = 'Lucas', 2015, 'Devmedia', 3.14, 2.71, 'X' print ("\nItemss in myTuple: ", myTuple) print ("\nQuantity of items in myTuple is ", len(myTuple)) print ("nElement in position 3: ", myTuple[3])

Lucas Leitão
Curtidas 0
Respostas

David Sylvestre
09/11/2015
O "\n" serve para dar uma quebra de linha.
Mais informações sobre os scapes[1]
[1]http://learnpythonthehardway.org/book/ex10.html
Mais informações sobre os scapes[1]
[1]http://learnpythonthehardway.org/book/ex10.html
GOSTEI 0

Lucas Leitão
09/11/2015
Obrigado David! Me desculpa pela pergunta.
GOSTEI 0

Eduardo Pessoa
09/11/2015
Lucas, boa noite, olha essa apostila, já possui ela?
[url]http://www.telecom.uff.br/pet/petws/downloads/apostilas/PYTHON.pdf[/url]
[url]http://www.telecom.uff.br/pet/petws/downloads/apostilas/PYTHON.pdf[/url]
GOSTEI 0

Lucas Leitão
09/11/2015
Não conhecia, estou acompanhando apenas video aulas.
GOSTEI 0

Eduardo Pessoa
09/11/2015
Baixe, videos são bons mas leitura é fundamental.
GOSTEI 0