---
title: "Discussion on \"How to use Ternary Operator in Python?\" | Hashnode"
description: "Discussion on \"How to use Ternary Operator in Python?\". Python is one of the fastest-growing programming languages worldwide. It's always being updated with new features. It is quite famous for its convenient one-liners. One such is the ternary operator. The ternary operator is available in most programmi..."
url: "https://hashnode.com/posts/how-to-use-ternary-operator-in-python/6344685cf943840715bd247b"
---

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

Discussion

# [How to use Ternary Operator in Python?](https://blog.ashutoshkrris.in/how-to-use-ternary-operator-in-python?utm_source=hashnode&utm_medium=feed)

Python is one of the fastest-growing programming languages worldwide. It's always being updated with new features. It is quite famous for its convenient one-liners. One such is the ternary operator. The ternary operator is available in most programmi...

Oct 10, 2022 · 2 min read · blog.ashutoshkrris.in  
Updated Mar 18, 2023  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Ashutosh Krishna](https://hashnode.com/@ashutoshkrris)

@ashutoshkrris · Bengaluru, India

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

Building reliable software with Java, Spring Boot, Python, and the web

Software Engineer at OpenText passionate about building scalable web applications and backend systems. I work mainly with Java, Spring Boot, Python, and modern web technologies. I enjoy creating things for the internet, exploring new tech, and sharing what I learn along the way.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
