From 01f5d5abcf126db3468b0ecf2f191e30f8c700ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Sat, 29 Oct 2022 14:12:58 -0300 Subject: [PATCH] Tipo tuple (tuplas) --- aula52.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 aula52.py diff --git a/aula52.py b/aula52.py new file mode 100644 index 0000000..0f85bf0 --- /dev/null +++ b/aula52.py @@ -0,0 +1,8 @@ +""" +Tipo tupla - Uma lista imutável +""" +nomes = ('Maria', 'Helena', 'Luiz') +# nomes = tuple(nomes) +# nomes = list(nomes) +print(nomes[-1]) +print(nomes)