This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello world!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Comentário de uma linha | |
''' | |
Comentário de multiplas linhas | |
Comentário de multiplas linhas | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("Hello universe!") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#FAÇA | |
primeiro_tutorial, total_mensal, media_aluno1 | |
#NÃO FAÇA | |
1Tutorial, tot@l_mens@al, media_em_% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#O PYTHON INTERPRETA AS VARIÁVEIS ABAIXO COMO TOTALMENTE DIFERENTES | |
variable = 10 #lowercase(minuscula) | |
Variable = 20 #title(titulo) | |
VARIABLE = 30 #uppercase(maiuscula) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
soma = 2 + 2 | |
>>> 4 | |
subtracao = 10 - 5 | |
>>> 5 | |
multiplicacao = 5 * 5 | |
>>> 25 | |
divisão = 10 / 5 | |
>>> 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = "guido von" | |
print(name.title()) | |
>>>Guido Von |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resto = 9 % 2 #resto de 9 dividido por 2 | |
>>> 1 | |
parte_inteira = 9//2 #parte inteira de 9 dividido por 2 | |
>>> 4 | |
potencia = 2**3 #2 elevado a terceira potencia | |
>>> 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = "guido von" | |
print(name.upper()) | |
>>>GUIDO VON |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = "Guido Von" | |
print(name.lower()) | |
>>>guido von |
OlderNewer