Skip to content

Commit

Permalink
Create f_strinf
Browse files Browse the repository at this point in the history
Variável dentro da string f-string.
  • Loading branch information
MartinsJessica authored Mar 22, 2023
1 parent 88d1807 commit 9c04d5b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions f_strinf
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 9c04d5b

Please sign in to comment.