Possible Duplicate:
Python ‘==’ vs ‘is’ comparing strings, ‘is’ fails sometimes, why?
In Python, what is the difference between these two statements:
if x is "odp":
if x == "odp":
A “duplicate” refers to an exact copy of something. “Fake” refers to something being artificial or false. For example, if I print the same document twice, that's a duplicate; however, if I print the text of the constitution and say it's the original constitution, that's fake.
Definition of in duplicate 1 : so that there are two copies We were required to fill out the paperwork in duplicate. 2 : with an exact copy Please send the contract in duplicate.
A duplicate is an exact copy. A reproduction is a close copy, and especially one made after the original is no longer available.
More Definitions of Duplicate originalDuplicate original means an exact copy of a signed original, an exact copy with signatures created by the same impression as the original, or an exact copy bearing an original signature. Duplicate original .
The ==
operator tests for equality
The is
keyword tests for object identity; whether we are talking about the same object. Note that multiple variables may refer to the same object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With