codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
>>> s = "((self start < self stop and self step > 0) or (self start > self stop and self step < 0))" >>> s.count("("), s.count(")") (3, 3) >>> x = tokenize(s) >>> x '( ( self start < self stop ) and self step > 0 ) or ( self start > self stop ) and self step < 0 ) )' >>> x.count("("), x.count(")") (3, 5) >>>
Private
[
?
]
Run code
Submit