# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # returns maximum and minimum value

print(max(10,13,66))
print(min(10,13,66))

# # returns the absolute value

print(abs(44))
print(abs(-44))

# # type conversion

print(float(10))
print(int(3.33333))
print(int('107') + 10)

# # round a number

num1 = 12312.456
x = round(num1)
print(x)

num2 = 12312.4563453
x = round(num2, 2)
print(x)

num3 = 12312.4563453
x = round(num2, -3)
print(x)

# # set function

s = {1,1,1,3,3,3,3,5,5}
print(s)

set([1,1,1,3,3,3,3,5,5])

s.add(35)
print(s)

# # some error code

x = -10
y = 5
Which of the two variables above has the smallest absolute value?
smallest_abs = min(abs(x, y))


# +
def f(x):
    y = abs(x)
return y

print(f(5))
# -

ruound_to_two_places(9.9999)

StarcoderdataJupyterScriptsDedupFiltered