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 35db9df commit 23e6d11Copy full SHA for 23e6d11
codes/session_2/condition.py
@@ -0,0 +1,11 @@
1
+# Open terminal > python3 condition.py
2
+# Start typing below commands and see the output
3
+
4
+x = int(input('Please enter an integer: '))
5
6
+if x < 0:
7
+ print(str(x) + ' is a negative number')
8
+elif x == 0:
9
+ print(str(x) + ' is zero')
10
+else:
11
+ print(str(x) + ' is a positive number')
0 commit comments