Untitled
Never
from datetime import datetime print('1.Truck/Bus\n2.Car\n3.Cycle/Motor cycle/Scooter') vtype = int(input('Enter vehicle type : ')) t1 = datetime.strptime(input('Enter entry time : '), "%H:%M") t2 = datetime.strptime(input('Enter exit time : '), "%H:%M") t0 = (t2 - t1).total_seconds() amt = None if vtype == 1: amt = 20 if t0 < 10800 else 30 elif vtype == 2: amt = 10 if t0 < 10800 else 20 else: amt = 5 if t0 < 10800 else 10 print('Amount :', amt)
Raw Text
-
Untitled
4 min ago
-
Untitled
16 min ago
-
Untitled
32 min ago
-
Breaking news - Update 1 - 12/10/2023 04:33:34
1 hour ago
-
~@~[[Official!]] Here's How To Watch NFL Week 14 Live Streams@ReddiT at Home?
1 hour ago
-
Breaking news - Update 1 - 12/10/2023 04:26:45
1 hour ago
-
wqegq3gwq3eg
1 hour ago
-
Breaking news - Update 1 - 12/10/2023 04:20:25
1 hour ago
-
Breaking news - Update 1 - 12/10/2023 04:13:04
1 hour ago
-
Breaking news - Update 1 - 12/10/2023 04:01:27
1 hour ago