micropython: add micropython component
This commit is contained in:
9
components/language/micropython/tests/basics/ifexpr.py
Normal file
9
components/language/micropython/tests/basics/ifexpr.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# test if-expressions
|
||||
|
||||
print(1 if 0 else 2)
|
||||
print(3 if 1 else 4)
|
||||
|
||||
def f(x):
|
||||
print('a' if x else 'b')
|
||||
f([])
|
||||
f([1])
|
Reference in New Issue
Block a user