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 1e2084c commit 7781d3aCopy full SHA for 7781d3a
if-else.py main
@@ -0,0 +1,18 @@
1
+a=int(input("Enter your age: "))
2
+print("your age is:", a)
3
+if (a>18):
4
+ print("you can drive")
5
+
6
+conditional operators
7
+>, <, >=, <=, ==, !=
8
9
+print(a>18)
10
+print(a<18)
11
+print(a>=18)
12
+print(a<=18)
13
+print(a==18)
14
+print(a!=18)
15
16
17
+else:
18
+ print("you can not drive")
0 commit comments