1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-13 02:04:23 +02:00

Merge pull request #3379 from fnscoder/master

[python3/pr-br] Fixed typo
This commit is contained in:
Divay Prakash
2018-11-01 12:39:59 +05:30
committed by GitHub

View File

@@ -105,9 +105,9 @@ False or True # => True
1 < 2 < 3 # => True 1 < 2 < 3 # => True
2 < 3 < 2 # => False 2 < 3 < 2 # => False
# (operador 'is' e operador '==') is verifica se duas referenciam um # (operador 'is' e operador '==') is verifica se duas variáveis
# mesmo objeto, mas == verifica se as variáveis apontam para o # referenciam um mesmo objeto, mas == verifica se as variáveis
# mesmo valor. # apontam para o mesmo valor.
a = [1, 2, 3, 4] # Referência a uma nova lista, [1, 2, 3, 4] a = [1, 2, 3, 4] # Referência a uma nova lista, [1, 2, 3, 4]
b = a # b referencia o que está referenciado por a b = a # b referencia o que está referenciado por a
b is a # => True, a e b referenciam o mesmo objeto b is a # => True, a e b referenciam o mesmo objeto