From 8562941779365442616438a3a74e478a61a38d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Sat, 29 Oct 2022 14:00:05 -0300 Subject: [PATCH] =?UTF-8?q?Introdu=C3=A7=C3=A3o=20ao=20empacotamento=20e?= =?UTF-8?q?=20desempacotamento?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aula51.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/aula51.py b/aula51.py index 10112ae..35d99a7 100644 --- a/aula51.py +++ b/aula51.py @@ -1,6 +1,5 @@ """ -Introdução ao desempacotamento + tuplas (tuple) +Introdução ao empacotamento e desempacotamento """ -nome1, *_ = 'Maria', 'Helena', 'Luiz' -a, b, c = 1, 2, 3 -print(a, b, c) +_, _, nome, *resto = ['Maria', 'Helena', 'Luiz'] +print(nome)