What is printed by the following statement?
Print("X" not in “APCSP")
Answers
Answered by
1
Correct Códe:
- print("X" not in "APCSP")
Output:
- True
Explanation:
- "X" in "APCSP" checks whether the string "X" is present in the given string or not. Its not present in the string. So, the result is False.
- 'not' negates the condition and so, the condition becomes True.
- Hence, the output is True.
•••♪
Attachments:
Similar questions
Biology,
1 month ago
Math,
1 month ago
English,
2 months ago
India Languages,
9 months ago
Physics,
9 months ago