Skip to content

Commit 4284f64

Browse files
authored
Decision making of car driving
User will put any number of age. Program will tell if you are eligible or not to drive a car or not.
1 parent f581e7e commit 4284f64

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Car driving

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var1=18
2+
var2=int(input("Enter Your Age: "))
3+
if var2>var1:
4+
print("drive")
5+
elif var2==var1:
6+
print("decide")
7+
8+
else:
9+
print ("do not drive")

0 commit comments

Comments
 (0)