Get min and max of two values

Rust

#![allow(unused)] fn main() { use std::cmp::{min, max}; let (max_v, min_v) = (max(10, 50), min(10, 50)); }

Python

max_v, min_v = max(10, 50), min(10, 50)