summaryrefslogtreecommitdiff
path: root/tests/cmdline/repl_cont.py.exp
blob: 2405e601cb3c35efc31b36c3f3f67815d01951cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Micro Python \.\+ linux version
>>> # check REPL allows to continue input
>>> 1 \
... + 2
3
>>> '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):
...  print(x)
... 
>>> f(3)
3
>>>