Post

Python Programming
Python Programming@PythonPr·
What will This Code Print? Write Me Your Thoughts Here!
Python Programming tweet media
English
31
12
115
11.8K
Robin Fultz
Robin Fultz@robin16633·
@PythonPr This code outputs D. Because score is not greater than 90, score is;t greater than or equal to and not less than 90, and score is DEFINITELY not equal to 100.
English
0
0
6
276
Usama Mohsin
Usama Mohsin@iUsamaMohsin·
@PythonPr it is "D" and not "B" because in "B" it is asking for score to be 90 as well as less than 90 in an "and" operator, which does not work. as for "A" and "C" it is obv. so it is "D".
English
0
0
1
113
Inactive Unspecified User
Inactive Unspecified User@chosung200143·
@PythonPr Score is 90. When we matching the score with any conditions, first condition is not met, second condition is impossible to met (any number in world cannot be GEQ to 90 and less than 90 at once). Third condition is not met. So the D is output.
English
0
0
0
31
Abdulrahman
Abdulrahman@abdul_amyz·
@PythonPr It's D A less than 90, C is not 100, B need two conditions to be true.
Abdulrahman tweet media
English
0
1
0
55
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr Answer: D Solution: score is initialized to 90. Let's now go through the if-elif-else ladder. The if-condition is score > 90 Because the value of score is 90, this condition is False. That is because it is > and not >= So we go the elif score>=90 and score<90 +
English
0
0
1
141
BIGO LIVE
BIGO LIVE@BIGOLIVEapp·
Up late and bored? Tap into live conversations.
English
21
17
319
4.3M
Paylaş