MCQs>IT & Programming>Python>Read the following statements: Statement 1: The conditions used in 'while' and 'if' statements can contain only comparison operators. Statement 2: The operators 'is' and 'is not' compare whether two objects are really the same object. Which of the following is correct?
Python MCQs
Read the following statements:
Statement 1: The conditions used in 'while' and 'if' statements can contain only comparison operators. Statement 2: The operators 'is' and 'is not' compare whether two objects are really the same object.
Which of the following is correct?
Answer
Correct Answer: Statement 1 is false but statement 2 is true
Explanation:
Note: This Question is unanswered, help us to find answer for this one