You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lecture2.md
+20-4
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,31 @@
4
4
[Basics of Python](day2/recap.py)
5
5
6
6
## Operators
7
+
[Code](day2/operators.py)
8
+
9
+
### Relational Operators
10
+
- comparison operators (<, >, <=, >=)
11
+
- Equals (==)
12
+
- Not equals (!=)
13
+
14
+
### Logical Operators
7
15
- and
8
16
- or
9
17
- not
10
-
- comparisons (<, >, ==, !=)
11
18
12
19
## Conditionals
13
-
- if
14
-
- else
15
-
- elif
20
+
[Code](day2/conditionals.py)
21
+
22
+
- Decision making statements in programming languages decide the direction of flow of program execution.
23
+
24
+
- There comes situations in real life when we need to make some decisions and based on these decisions, we decide what should we do next.
25
+
26
+
- Similar situations arise in programming also where we need to make some decisions and based on these decision we will execute the next block of code.
27
+
28
+
- Majorly, the following 3 conditional constructs are used in Python:
0 commit comments