---
title: "Comment by Harry Munro on \"Step By Step Guide to Simulate a Signalized Intersection by Python\" | Hashnode"
description: "Thanks for sharing! I sometimes using pygame so this will be a useful reference. Quick thought while reading through, for areas of code where you have lots of i"
url: "https://hashnode.com/posts/dev-step-by-step-guide-to-simulate-a-signalized-intersection-by-python/6269c78fbbabafb0a970840d/comment/63d6d07dd6ba08377e949861"
---

[Discussion](https://hashnode.com/posts/dev-step-by-step-guide-to-simulate-a-signalized-intersection-by-python/6269c78fbbabafb0a970840d)

Comment [Step By Step Guide to Simulate a Signalized Intersection by Python](https://hashnode.com/posts/dev-step-by-step-guide-to-simulate-a-signalized-intersection-by-python/6269c78fbbabafb0a970840d)

[Harry Munro](https://hashnode.com/@harrymunro)

[Jan 29, 2023](https://hashnode.com/posts/dev-step-by-step-guide-to-simulate-a-signalized-intersection-by-python/6269c78fbbabafb0a970840d/comment/63d6d07dd6ba08377e949861)

Thanks for sharing! I sometimes using pygame so this will be a useful reference.

Quick thought while reading through, for areas of code where you have lots of if/elif/else statements, you might find the match statement which was introduced in Python 3.10 useful: [docs.python.org/3/tutorial/controlflow.html](https://docs.python.org/3/tutorial/controlflow.html#match-statements)

[Ayat AlBqoor](https://hashnode.com/@ayatalkayed)

[Jan 29, 2023](https://hashnode.com/posts/dev-step-by-step-guide-to-simulate-a-signalized-intersection-by-python/6269c78fbbabafb0a970840d/comment/63d6d07dd6ba08377e949861#reply-63d6d639d6ba08377e949910)

Thank you ! I will read about it
