We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0276bec commit c5950b6Copy full SHA for c5950b6
ex29.py
@@ -1,6 +1,6 @@
1
people = 20
2
-cats = 30
3
-dogs = 15
+cats = 15
+dogs = 30
4
5
6
if people < cats:
@@ -26,4 +26,10 @@
26
27
28
if people == dogs:
29
- print "People are dogs."
+ print "People are dogs."
30
+
31
+# Extra credit
32
+# 1. The if statement executes the code under it if the expression is True
33
+# 2. The code under the if needs to be indented 4 spaces so that Python knows what code is part of the if block
34
+# 3. If the code wasn't indented, it would be executed, regardless of the Truthiness of the if statement
35
+# 5. IF we change the initial variables, we get different print statements.
0 commit comments