Comparison Operators Practice
Reviewing Comparison Operators
Below is a recap of the comparison operators we've covered:
| Operation | Symbol | Usage Example |
|---|---|---|
| Equality | == | a == b |
| Inequality | != | a != b |
| Greater than | > | a > b |
| Less than | < | a < b |
| Greater than or equal to | >= | a >= b |
| Less than or equal to | <= | a <= b |
You'll be using some of these operators in the upcoming task.
Uppgift
Swipe to start coding
Insert the appropriate inequality symbol (either < or >) so the expression evaluates to 1.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 5
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Sammanfatta detta kapitel
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 2.63
Comparison Operators Practice
Svep för att visa menyn
Reviewing Comparison Operators
Below is a recap of the comparison operators we've covered:
| Operation | Symbol | Usage Example |
|---|---|---|
| Equality | == | a == b |
| Inequality | != | a != b |
| Greater than | > | a > b |
| Less than | < | a < b |
| Greater than or equal to | >= | a >= b |
| Less than or equal to | <= | a <= b |
You'll be using some of these operators in the upcoming task.
Uppgift
Swipe to start coding
Insert the appropriate inequality symbol (either < or >) so the expression evaluates to 1.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 5
single