import numpy as np
revenue_in_yen = [
300000, 340000, 320000, 360000,
440000, 140000, 180000, 340000,
330000, 290000, 280000, 380000,
170000, 140000, 230000, 390000,
400000, 350000, 380000, 150000,
110000, 240000, 380000, 380000,
340000, 420000, 150000, 130000,
360000, 320000, 250000
]
#๋ฐฐ์ด์ numpy ๋ฐฐ์ด๋ก ๋ณํ
np.array(revenue_in_yen)
#์ํ๋ฅผ ์ํ๋ก ๋ณํ
won_array = np.array(revenue_in_yen) * float(10.08)
won_array
'๐ฉโ๐ป ์๊ณ ๋ฆฌ์ฆ > ๐ข PYTHON' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[์คํ ์์ ] ๋ฐฑ์ค 9012๋ฒ (0) | 2024.07.07 |
---|---|
[์คํ ์์ ] ๋ฐฑ์ค 10773๋ฒ (0) | 2024.07.07 |
arange ํจ์ (0) | 2023.09.19 |
์จ๋ ๋ณํ (0) | 2023.09.16 |
๊ฐ ์๋ฆฟ์ ํฉ ๊ตฌํ๊ธฐ (0) | 2023.09.16 |