From d1cd77c150fe84478b7f76e45f4f25de7b8a243d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Wed, 26 Oct 2022 11:48:44 -0300 Subject: [PATCH] =?UTF-8?q?Fatiamento=20de=20strings=20e=20a=20fun=C3=A7?= =?UTF-8?q?=C3=A3o=20len?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aula27.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 aula27.py diff --git a/aula27.py b/aula27.py new file mode 100644 index 0000000..0931e75 --- /dev/null +++ b/aula27.py @@ -0,0 +1,11 @@ +""" +Fatiamento de strings + 012345678 + Olá mundo +-987654321 +Fatiamento [i:f:p] [::] +Obs.: a função len retorna a qtd +de caracteres da str +""" +variavel = 'Olá mundo' +print(variavel[::-1])