Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd06bff

Browse files
committed
New exercise
1 parent62966b2 commitbd06bff

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

‎ch08-conditional-logic/1-compare-values.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Solutions to review exercises
33

44

5+
# Exercise 1
56
# Test whether these expressions are True or False
67

78
print(1<=1)
@@ -10,3 +11,28 @@
1011
print("good"!="bad")
1112
print("good"!="Good")
1213
print(123=="123")
14+
15+
16+
# Exercise 2
17+
# Fill in the blank so that each of the following expressions are True
18+
19+
# 3 __ 4
20+
# Any of the following:
21+
3<4
22+
3<=4
23+
3!=4
24+
25+
# 10 __ 5
26+
# Any of the following:
27+
10>5
28+
10>=5
29+
10!=5
30+
31+
# "jack" __ "jill"
32+
# Any of the following:
33+
"jack"<"jill"
34+
"jack"<="jill"
35+
"jack"!="jill"
36+
37+
# 42 __ "42"
38+
42!="42"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp