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.
2 parents c4a2281 + 59a2c6a commit 6bf7c93Copy full SHA for 6bf7c93
basics/01_hello_world/even or odd .py
@@ -0,0 +1,8 @@
1
+
2
+num = int(input("Enter a number: "))
3
4
+# Check if the number is even or odd
5
+if num % 2 == 0:
6
+ print(f"{num} is Even")
7
+else:
8
+ print(f"{num} is Odd")
0 commit comments