๐Ÿ‘ฉ‍๐Ÿ’ป ์•Œ๊ณ ๋ฆฌ์ฆ˜/๐Ÿข PYTHON

arange ํ•จ์ˆ˜

์˜ค๋ธŒ ๐Ÿง™‍โ™‚๏ธ 2023. 9. 19. 20:06

Q1. 3๋ถ€ํ„ฐ 100 ์‚ฌ์ด์— ์žˆ๋Š” 3์˜ ๋ฐฐ์ˆ˜ ์ถœ๋ ฅ

import numpy as np

arr = np.arange(3, 101, 3)

arr

Q2. 1๋ถ€ํ„ฐ 100 numpy array ์ถœ๋ ฅ

 

import numpy as np

arr = np.arange(1,101)

arr