-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathif_else.py
More file actions
50 lines (38 loc) · 750 Bytes
/
if_else.py
File metadata and controls
50 lines (38 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# If...else Statement
# Logical Conditions
# Equal A == B
# Not Equal A != B
# Less Than A < B
# Less than or equal A <= B
# Greater Than A > B
# Greater than or equal A >= B
# AND OR
# IS
# a = 70
# b = 78
# c = 72
# AND OR
# if a > b or c > a:
# print("A is greater than b and c is greater A")
# else:
# print("b and c are greater than a")
# if a > b:
# print("a is greater than b")
# elif a == b:
# print("A is equal to B")
# elif a < b:
# print("A is less than b")
# elif a >= b:
# print("A is greater than or equal b")
# else:
# print("b is greater than a")
# IS STATEMENT
# a = [1, 2, 3, 4]
# b = [1, 2, 3, 4]
# print(id(a))
# print(id(b))
# print(a is b)
a = 2
b = 4
if a < b:
pass