chore: add control flow example
This commit is contained in:
9
examples/01_simple_type_checking/03_control_flow.py
Normal file
9
examples/01_simple_type_checking/03_control_flow.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
def minimum(x: int, y: int):
|
||||||
|
if x < y:
|
||||||
|
return x
|
||||||
|
else:
|
||||||
|
return y
|
||||||
|
|
||||||
|
a = 15
|
||||||
|
b = 72
|
||||||
|
c = minimum(a, b)
|
||||||
Reference in New Issue
Block a user