There was an error while loading. Please reload this page.
1 parent 3ac8b5d commit d4bf0cdCopy full SHA for d4bf0cd
1 file changed
source/ch4_conditionals.ptx
@@ -19,7 +19,7 @@
19
<program xml:id="python-simple-if" interactive="activecode" language="python">
20
<code>
21
score = 95
22
-if score >= 90:
+if score >= 90: # Note the colon at the end of the line
23
print("Excellent work!")
24
</code>
25
</program>
@@ -31,7 +31,7 @@ if score >= 90:
31
public class SimpleIfExample {
32
public static void main(String[] args) {
33
int score = 70;
34
- if (score <= 70) {
+ if (score <= 70) { // Note the parentheses and curly braces
35
System.out.println("Needs work!");
36
}
37
0 commit comments