dotfiles/nvim/.config/nvim/test.py

26 lines
411 B
Python

def forloop():
for i in range(10):
if i % 2 == 0:
print("x")
print(i)
def add(x, y):
print(f"{x} + {y} = {x+y}\n")
def subtract(x: int, y: int) -> int:
"""
Very cool function that will subtract two ints
return: int
"""
print(f"{x} - {y} = {x-y}\n")
print("ahother break")
return x + y
# open terminal 100: f1
add(1, 2)
subtract(1, 2)