Count Number of Cars in Less Than 10 Lines of Code Using Python

Make your own cars counter using this simple code

Sabina Pokhrel
Towards Data Science
3 min readSep 18, 2019

--

Blue Volkswagen Beetle (Photo by Tom Arrowsmith on Unsplash)

When travelling in a car as a kid, did you ever play a game where you counted the number of cars that passed by?

That used to be my favourite game as a kid.

--

--

AI Specialist | Machine Learning Engineer | Writer and former Editorial Associate at Towards Data Science