Skip to content

Commit a656b81

Browse files
Add files via upload
1 parent 6a20f4a commit a656b81

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pyhton_study_1/page14/script.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
x = 20
2+
# if x ranges from 10 to 30 inclusive, print 'x ranges from 10 to 30'
3+
if 10 <= x <= 30:
4+
print("x ranges from 10 to 30")
5+
6+
7+
y = 60
8+
# if y is less than 10 or greater than 30, print 'y is less than 10 or greater than 30'
9+
if y < 10 or y > 30:
10+
print("y is less than 10 or greater than 30")
11+
12+
13+
14+
z = 55
15+
# if z is not equal to 77, print 'z is not 77'
16+
if not z == 77:
17+
print("z is not 77")
18+
19+

0 commit comments

Comments
 (0)