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