---
title: "Comment by Alexander Codes on \"Understanding State Machine in Python\" | Hashnode"
description: "Hey Peyman, Is the transition method correct?"
url: "https://hashnode.com/posts/understanding-state-machine-in-python/662299382cca381e31d7b4da/comment/66239d2775627de96d6ae21f"
---

[Discussion](https://hashnode.com/posts/understanding-state-machine-in-python/662299382cca381e31d7b4da)

Comment [Understanding State Machine in Python](https://hashnode.com/posts/understanding-state-machine-in-python/662299382cca381e31d7b4da)

[Alexander Codes](https://hashnode.com/@alexandercodes)

[Apr 20, 2024](https://hashnode.com/posts/understanding-state-machine-in-python/662299382cca381e31d7b4da/comment/66239d2775627de96d6ae21f)

Hey Peyman,

Is the transition method correct?

[Peyman Rashidi](https://hashnode.com/@Pemidi)

[Apr 20, 2024](https://hashnode.com/posts/understanding-state-machine-in-python/662299382cca381e31d7b4da/comment/66239d2775627de96d6ae21f#reply-662446838bcfcfe94a61e49f)

Hey there. I made a mistake and edited my code right before it was published. Now fixed, the code functions properly. I appreciate your feedback.
