Skip to content

Commit

Permalink
Merge pull request #9 from ajitonelsonn/dev
Browse files Browse the repository at this point in the history
operasaun komparasaun
  • Loading branch information
ajitonelsonn authored Apr 4, 2024
2 parents 66048c3 + a9bafbc commit 4b8fd2e
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
32 changes: 32 additions & 0 deletions operasaun komparasaun/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Operasaun Komparasaun

Operasaun komparasaun iha Python uza operadores ne'ebé permite ita kompara valores no hatudu rezultadu ho valor lógiku (boolean). Lista operadores komparasaun ne'ebé uza iha Python:

1. `==`: Verifika se valores sira igual.
2. `!=`: Verifika se valores sira la igual.
3. `>`: Verifika se valor bainhira maiór.
4. `<`: Verifika se valor bainhira menus.
5. `>=`: Verifika se valor bainhira maiór ka igual.
6. `<=`: Verifika se valor bainhira menus ka igual.

Ezemplu sira:

```python
# Verifika se 5 igual ho 5
print(5 == 5) # Sai True

# Verifika se 10 la igual ho 5
print(10 != 5) # Sai True

# Verifika se 10 maiór do que 5
print(10 > 5) # Sai True

# Verifika se 5 menus do que 10
print(5 < 10) # Sai True

# Verifika se 10 igual ka maiór do que 10
print(10 >= 10) # Sai True

# Verifika se 5 igual ka menus do que 10
print(5 <= 10) # Sai True
```
17 changes: 17 additions & 0 deletions operasaun komparasaun/kode.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Verifika se 5 igual ho 5
print(5 == 5) # Sai True

# Verifika se 10 la igual ho 5
print(10 != 5) # Sai True

# Verifika se 10 maiór do que 5
print(10 > 5) # Sai True

# Verifika se 5 menus do que 10
print(5 < 10) # Sai True

# Verifika se 10 igual ka maiór do que 10
print(10 >= 10) # Sai True

# Verifika se 5 igual ka menus do que 10
print(5 <= 10) # Sai True

0 comments on commit 4b8fd2e

Please sign in to comment.