I am beginner in learning Python programming. When I run this simple script in Pycharm 2021.1.2 (community edition), I got the result I expected:
a = 1000
b = 1000
print(a is b)
True
But when I run the same in Python interpreter 3.9.4, I got a different result:
>>> a = 1000
>>> b = 1000
>>> print(a is b)
False
My question is why the difference? Which of Pycharm and interpreter is the most recommended for beginners like me to continue to learn Python?