mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
20 lines
233 B
Python
20 lines
233 B
Python
x = 0
|
|
if x==0: x=1
|
|
assert x==1
|
|
|
|
def f(x, y): return x+y
|
|
assert f(1,2)==3
|
|
|
|
c = 1
|
|
if c==0: x=1
|
|
elif c==1: x=2
|
|
else: x=3
|
|
assert x==2
|
|
|
|
def f1(x): return x+1
|
|
assert f1(1)==2
|
|
|
|
# class A: pass
|
|
# class B: pass
|
|
# a = A()
|
|
# assert type(a) is A |