From 9c04d5bcbeb35fa2d406e52659a180eb8e88ee3c Mon Sep 17 00:00:00 2001 From: MartinsJessica <101491038+MartinsJessica@users.noreply.github.com> Date: Tue, 21 Mar 2023 22:13:24 -0300 Subject: [PATCH] Create f_strinf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Variável dentro da string f-string. --- f_strinf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 f_strinf diff --git a/f_strinf b/f_strinf new file mode 100644 index 0000000..35a8ffa --- /dev/null +++ b/f_strinf @@ -0,0 +1,7 @@ +nome = "Jessica" +idade = "30" + +idade = int(input("Informe um número:")) + +frase =f"{nome} tem {idade} anos. Daqui {100-idade} anos ele fara em 100 anos" +print(frase)