Is there a way to write this C/C++ code in Python? a = (b == true ? "123" : "456" )
a = (b == true ? "123" : "456" )
Thanks so much!
a = '123' if b else '456'
see here for more info