Operadores relacionais (de comparação) em Python
This commit is contained in:
17
aula19.py
Normal file
17
aula19.py
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
"""
|
||||||
|
Operadores de comparação (relacionais)
|
||||||
|
OP Significado Exemplo (True)
|
||||||
|
> maior 2 > 1
|
||||||
|
>= maior ou igual 2 >= 2
|
||||||
|
< menor 1 < 2
|
||||||
|
<= menor ou igual 2 <= 2
|
||||||
|
== igual 'a' == 'a'
|
||||||
|
!= diferente 'a' != 'b'
|
||||||
|
"""
|
||||||
|
maior = 2 > 1
|
||||||
|
maior_ou_igual = 2 >= 2
|
||||||
|
menor = 1 < 2
|
||||||
|
menor_ou_igual = 2 <= 2
|
||||||
|
igual = 'a' == 'a'
|
||||||
|
diferente = 'a' != 'b'
|
||||||
|
print('Olha meu print aqui')
|
||||||
Reference in New Issue
Block a user