as salam. alhamdulillah to allah for giving us this life. 🙂


phyton programming language is an operator.

every object has an identity, a type and a value. an object’s identity never changes once it has been created; u may think of it as the object’s address in memory. the ‘is‘ operator compares the identity of two objects; the id() function returns an integer representing its identity (currently implemented as its address).

other word, both is or is not is an operator to compare the memory location of two objects. to obtain this memory location, we need to use the id() function. like these below examples:

1) a = “foo”
b = a
c = “bar”

2) id(a)
= 38049992

3) id(b)
= 38049992

4) id(c)
= 38048592

5) a is b
= True

6) a is c
= False

7) a is not c
= True

🙂 #phytonisanoperator


wassalam 🙂


About fzfain88

islam. moderate. programmer. did all because allah. :)

One response »

  1. hello there and thanks on your information – I’ve definitely picked up anything new from proper here. I did however experience several technical issues the usage of this web site, as I skilled to reload the web site lots of occasions previous to I could get it to load correctly. I have been wondering in case your hosting is OK? Not that I am complaining, however sluggish loading cases times will often have an effect on your placement in google and can damage your high-quality ranking if advertising and ***********|advertising|advertising|advertising and *********** with Adwords. Well I’m adding this RSS to my email and can look out for much more of your respective interesting content. Make sure you update this again very soon..

As salam. Hi. Leave a Comment?

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s