whether :? operator present in python? if yes then what is it's precedence? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

whether :? operator present in python? if yes then what is it's precedence?

6th Sep 2016, 1:31 PM
Nithish Dongre
Nithish Dongre - avatar
2 Answers
+ 1
https://docs.python.org/3/faq/programming.html#is-there-an-equivalent-of-c-s-ternary-operator
6th Sep 2016, 1:52 PM
Textobot
Textobot - avatar
0
: operator is using to do any function in another fumction example: while True: x = 4 print ('c') print (x)
6th Sep 2016, 2:00 PM
MeoQ
MeoQ - avatar