+ 5

is there any operations like in c++ we use turnary operator ! which we can use in Python

turnary

24th May 2017, 5:10 PM
Bhavin Kanzariya
Bhavin Kanzariya - avatar
2 Respuestas
+ 5
ok thank you
24th May 2017, 5:19 PM
Bhavin Kanzariya
Bhavin Kanzariya - avatar
+ 2
yes there is, example: res = val1 if a>b else val2 It was added in 2006 in 2.5 python version.
24th May 2017, 5:17 PM
Highman
Highman - avatar