From db8c58ffcd44f24af9eb96601dcba45b3e0f4304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Thu, 3 Nov 2022 08:20:48 -0300 Subject: [PATCH] Exemplo de uso do tipo set --- aula79.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 aula79.py diff --git a/aula79.py b/aula79.py new file mode 100644 index 0000000..4b30cf3 --- /dev/null +++ b/aula79.py @@ -0,0 +1,11 @@ +# Exemplo de uso dos sets +letras = set() +while True: + letra = input('Digite: ') + letras.add(letra.lower()) + + if 'l' in letras: + print('PARABÉNS') + break + + print(letras)