MCQOPTIONS
Bookmark
Saved Bookmarks
→
Technical MCQs
→
2D Transformation And Answers in Technical MCQs
→
Can we write if/else into one line in python?..
1.
Can we write if/else into one line in python?
A.
Yes
B.
No
C.
if/else not used in python
D.
None of the above
Answer» B. No
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
The continue statement can be used in?
The ________ statement is a null operation.
Python programming language allows to use one loop inside another loop known as?
If the else statement is used with a while loop, the else statement is executed when the condition becomes _______.
A loop becomes infinite loop if a condition never becomes ________.
Does python have switch case statement?
<pre class="result notranslate">'p' + 'q' if '12'.isdigit() else 'r' + 's'</pre>9.Which statement will check if a is equal to b?
What will be output of this expression:
In a Python program, a control structure:
Can we write if/else into one line in python?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply