New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
? : are called Ternary Operators.
ex.
var = booleanExp ? ValueIfTrue : ValueIfFalse;
and that ? literally means "Asking a Question" Asking if the Boolean Expression is True.
If the Boolean Expression returned true, the Value for "True" will be assigned to the variable.
If the Boolean Expression returned false, the Value for "False" will be the one that'll be assigned to the variable instead.
I'm not asking a question, I just wanna share this to you guys 😁
18 Votes
6 AnswersHot today
Automatation python
1 Votes
General python
1 Votes
Coding
1 Votes
view challenge analytics
2 Votes
HTML
0 Votes
Problem with application
0 Votes
how to create a website
0 Votes
How to change the font
0 Votes
How to make a game with Phyton
1 Votes
Pygame
1 Votes