Operators and Special Symbols

Operator Tokens

+-***
/%<<>>
&|^~
<><=>=
==!=<>
  • Note: C operators such as ++,--, +=, and -= are not supported.

Other valid symbols

     (    )    [    ]    {    }    ,   :   .
     `    =    ;    '    "    #    \
     

These symbols may not appear in a program except inside a quoted string

     @    $    ?
     
<<< O'Reilly OSCON 2000, Introduction to Python, Slide 31
July 17, 2000, beazley@cs.uchicago.edu
>>>