Functions

print

print prints the v to the console without appendding a newline.

Signature:

def print(v: int | str):
  ...

Example:

print("Hello, World!")
print(123)

sqrt

sqrt returns the square root of the n

Signature:

def sqrt(n: int) -> int:
  ...

Example:

sqrt(64) == 8
sqrt(16) == 4

to_int

to_int converts s into an integer then returns it

Signature:

def to_int(s: str) -> int:
  ...

Example:

to_int("123") == 123