Error back for id()

I am trying to follow the lesson "My first Python Code" and I am trying to find the id of a variable. I do the following and the output is unfortunately an error



x = 123



id (a)



TypeError Traceback (most recent call last) <ipython-input-6-7557b5bfb48c> in <module> ----> 1 id (x)



TypeError: 'tuple' object is not callable



What I am doing wrong?






 

Hi Adrian,



You have assigned 123 in a variable x, and calling variable a.



You can try writing like this.



x =100

id(x)