# ---
# layout : jupyter
# title : Numpy code snippet
# category : Code Snippet
# tags : numpy
# 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
# ---

# # np.isin(element, test_element)

# element가 test_element에 존재하는지 True, False로 반환함. element와 **같은 크기**로 반환함

import numpy as np

score = [209, 82, 291]
target = [291]
np.isin(target, score) #True


def recip(n):
    return 1/n


a = recip(1)
for i in range(2,21):
    a += recip(i)
    

a

a / 20

a * 100

StarcoderdataJupyterScriptsDedupFiltered