1 parent 2274e6e commit 6b41386Copy full SHA for 6b41386
1 file changed
8 - Handling conditions/README.md
@@ -1,7 +1,9 @@
1
# Handling conditions
2
+
3
Conditional execution can be completed using the [if](https://docs.python.org/3/reference/compound_stmts.html#the-if-statement) statement
4
-if syntax
5
+`if` syntax
6
7
```python
8
if expression:
9
# code to execute
@@ -10,11 +12,10 @@ else:
10
12
```
11
13
14
[Comparison operators](https://docs.python.org/3/library/stdtypes.html#comparisons)
- - < less than
- - < greater than
15
- - == is equal to
16
- - \>= greater than or equal to
17
- - <= less than or equal to
18
-- != not equal to
19
20
-
+- < less than
+- < greater than
+- == is equal to
+- \>= greater than or equal to
+- <= less than or equal to
21
+- != not equal to
0 commit comments