Rasleen commited on
Commit
dbaa8d8
·
verified ·
1 Parent(s): bad0ef7

Create traffic_logic.py

Browse files
Files changed (1) hide show
  1. traffic_logic.py +3 -0
traffic_logic.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ def get_next_green(vehicle_counts):
2
+ # Returns the road with the highest vehicle count
3
+ return max(vehicle_counts, key=vehicle_counts.get)