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.
>>> 1 + 2
3
>>> 6 * 7
42
>>> 7 / 4
1.75
>>> "1 + 2".split()
['1', '+', '2']
>>> text_split = "1 + 2".split()
>>> text_split
['1', '+', '2']
>>> type(text_split)
<class 'list'>
>>> text_split[0]
'1'
>>> text_split[1]
'+'
>>> text_split[2]
'2'
>>> first_number, operator, second_number = text_split
>>> first_number
'1'
>>> operator
'+'
>>> second_number
'2'
>>> "1" + "2"
'12'
>>> 1 + 2
3
>>> "1   + 2".split()
['1', '+', '2']
>>> first_number, operator, second_number = "boom thata".split()
Traceback (most recent call last):
  File "<python-input-17>", line 1, in <module>
    first_number, operator, second_number = "boom thata".split()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected 3, got 2)
>>>

Code: