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

24 lines
364 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, y) -> int:
"""
Very cool function that will subtract two ints
return: int
"""
print(f"{x} - {y} = {x-y}\n")
return x + y
# open terminal 100: f1
subtract(1, 2)