33 lines
353 B
Plaintext
33 lines
353 B
Plaintext
|
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
|
||
|
>>>
|