---
title: "Discussion on \"Python If Else and Code Branching\" | Hashnode"
description: "Discussion on \"Python If Else and Code Branching\". Python, like most programming languages, has an if statement that provides branching in your code. An example syntax of Python’s if statement:\nx = 3\ny = 4\n\nif x == y:\n    print(\"They are equal\")\nelse:\n    print(\"They are not equal\")\n\nThe else branch ..."
url: "https://hashnode.com/posts/python-if-else-and-code-branching/610ffbc6b79d6a1136683041"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Python If Else and Code Branching](https://blog.vicentereyes.org/python-if-else-and-code-branching?utm_source=hashnode&utm_medium=feed)

Python, like most programming languages, has an if statement that provides branching in your code. An example syntax of Python’s if statement: x = 3 y = 4 if x == y: print("They are equal") else: print("They are not equal") The else branch ...

Apr 22, 2019 · 2 min read · blog.vicentereyes.org  
Updated Apr 29, 2023  
Read the article

-   [#python](https://hashnode.com/tag/python)

## Written by

[Vicente Reyes](https://hashnode.com/@vgreyes)

@vgreyes · MNL

  
[View profile](https://hashnode.com/@vgreyes)

Web Developer | Technical Writer | OSS Contributor | Musician | Gamer

Python Developer | Audio Editor | Technical Writer | OSS Contributor | Tag Moderator @ @ThePracticalDEV | Valorant TonyPoppins #881488

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
