circuitpython/tests/cmdline/repl_cont.py.exp

53 lines
554 B
Plaintext
Raw Normal View History

Micro Python \.\+ version
>>> # check REPL allows to continue input
>>> 1 \\\\
... + 2
3
>>> '"'
'"'
>>> "'"
"'"
>>> '\\\\''
"'"
>>> "\\\\""
'"'
>>> '\\\\'('
"'("
>>> "\\\\"("
'"('
>>> print("\\\\"(")
"(
>>> print('\\\\'(')
'(
>>> print("\\\\'(")
'(
>>> print('\\\\"(')
"(
>>> 'abc'
'abc'
>>> "abc"
'abc'
>>> '''abc
... def'''
'abc\\\\ndef'
>>> """ABC
... DEF"""
'ABC\\\\nDEF'
>>> print(
... 1 + 2)
3
>>> l = [1,
... 2]
>>> print(l)
[1, 2]
>>> d = {1:'one',
... 2:'two'}
>>> print(d[2])
two
>>> def f(x):
2015-08-20 05:34:22 -04:00
... print(x)
... 
>>> f(3)
3
>>>