We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90a7a93 commit d208354Copy full SHA for d208354
Decisions.py
@@ -0,0 +1,7 @@
1
+num = 3
2
+if num < 6 or num > 10:
3
+ if num < 6:
4
+ print("less than 6")
5
+ if num > 10:
6
+ print("greater than 10")
7
+print(".")
Decisions2.py
+temp = int(input("Enter temperature in celsius"))
+if temp < 20:
+ print("Wear heavy pants")
+elif temp < 30:
+ print("Play outside")
+else:
+ print("Too hot!")
Decisons3.py
@@ -0,0 +1,5 @@
+number = int(input("Enter an integer"))
+if number % 2 == 0:
+ print("Even number")
+ print("Odd number")
0 commit comments