Examveda

What does the is operator test for?

A. Equality of values

B. Identity of objects

C. Comparison of strings

D. Inclusion in a list

Answer: Option B

Solution (By Examveda Team)

The is operator tests whether two variables refer to the same object in memory.

This Question Belongs to Python Program >> Variable Names And Operators

Join The Discussion

Related Questions on Variable Names and Operators