From e2f4c97cba1871c64a6278a3197516678bdb2e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ot=C3=A1vio?= Date: Mon, 24 Oct 2022 12:34:37 -0300 Subject: [PATCH] Tipagem, strings e aspas --- aula3.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 aula3.py diff --git a/aula3.py b/aula3.py new file mode 100644 index 0000000..2b6af6b --- /dev/null +++ b/aula3.py @@ -0,0 +1,22 @@ +""" +DocString +Python = Linguagem de programação +Tipo de tipagem = Dinâmica / Forte +str -> string -> texto +Strings são textos que estão dentro de aspas +""" +print(1234) + +# Aspas simples +print('Luiz Otávio') +print(1, 'Luiz "Otávio"') + +# Aspas duplas +print("Luiz Otávio") +print(2, "Luiz 'Otávio'") + +# Escape +print("Luiz \"Otávio\"") + +# r +print(r"Luiz \"Otávio\"")