REPL

> uv run python
Python 3.14.3 (main, Feb  3 2026, 15:32:20) [Clang 17.0.0 (clang-1700.6.3.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> True and False
False
>>> not True
False
>>> not False
True
>>> "Karthik" is "Karthik"
<python-input-3>:1: SyntaxWarning: "is" with 'str' literal. Did you mean "=="?
True
>>> 1 is 1
<python-input-4>:1: SyntaxWarning: "is" with 'int' literal. Did you mean "=="?
True
>>> "Karthik" == "Karthik"
True
>>> 1 == 1
True
>>> 1 = 1
  File "<python-input-7>", line 1
    1 = 1
    ^
SyntaxError: cannot assign to literal here. Maybe you meant '==' instead of '='?
>>> number = 1
>>> 2 == 1
False
>>> 1 == 2
False
>>> 1 != 2
True
>>> 1 + 1 != 2
False
>>> (1 + 1) != 2
False
>>> 1 + 1 == 2
True
>>> (1 + 1) == 2
True
>>>
>>> 5 > 6
False
>>> 6 > 6
False
>>> 6 > 5
True
>>> 5 < 6
True
>>> 6 < 5
False
>>> 6 < 6
False
>>> 6 == 6
True
>>> 6 != 6
False
>>> 6 >= 6
True
>>> 6 >= 7
False
>>> 7 >= 7
True
>>> 8 >= 7
True
>>> 8 <= 8
True
>>> 8 <= 9
True
>>> (8 < 9) or (8 == 9)
True
>>> 9 <= 8
False
>>> "ABC" > "DEF"
False
>>> "Arun" > "Bairavi"
False
>>> 1 > 1
False
>>> 1 > 2
False
>>> "Arun" < "Bairavi"
True
>>> "Arun" == "Arun"
True
>>> "Arun" != "Arun"
False
>>>