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

# + id="ejiUsLD1kasW"
def calSquare(num):
  result = num * num
  return result


# + id="KpmX9kaNlIFf"
numbers = (1,2)

# + colab={"base_uri": "https://localhost:8080/"} id="GOn99K5blmQK" outputId="22525ff4-c1ad-4cac-d12d-010ab22b5717"
result = map(calSquare, numbers)
print(set(result))

# + colab={"base_uri": "https://localhost:8080/"} id="bXgkje-Yl1ep" outputId="9582c9c9-ad75-4dde-a78f-3e29160c292d"
calSquare(1), calSquare(2)

# + colab={"base_uri": "https://localhost:8080/"} id="UnPMhiOomeh6" outputId="8ae68259-6f5e-4f0e-8059-622a513bcd1c"
calplus = (lambda first, second : first + second)
type(calplus)

# + colab={"base_uri": "https://localhost:8080/"} id="L261IeCNmgAc" outputId="6cf136d8-7cd4-44e2-9f16-b75b2bdc0e6d"
number01 = [1,2,3]
number02 = [4,5,6]
type(number01), type(number02)

# + colab={"base_uri": "https://localhost:8080/"} id="yqEsHFIpq4T6" outputId="f0817960-d3ad-4498-bc15-b4f3be418580"
calplus(number01[0],number02[0])

# + colab={"base_uri": "https://localhost:8080/"} id="s8-FvZImrp3q" outputId="02685cd3-4180-4661-ab51-b2184e9128ed"
result = map(calplus,number01,number02)
list(result)

# + id="FBYtnUVEsAhL"


StarcoderdataJupyterScriptsDedupFiltered