Is there a ternary conditional operator in Python?

Sued21

New Member
Jun 20, 2022
2
0
1
Is a ternary conditional operator available in Python?


Update: I've got my answer from Scaler
 
Last edited:
Please keep discussions relevant to Proxmox (Especially if they don't really relate to the Proxmox Mail Gateway at all ;))

And yes, there is such an operator. The first result for "ternary conditional operator in Python" on Google provides a great summary and explanation!
 
  • Like
Reactions: Sued21

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!