인공지능/공부

고급 인공지능 활용 hw 1 - 단순 파이썬, numpy

이게될까 2024. 4. 13. 19:19
728x90
728x90

print("세종대학교")  
def year\_age50(x):  
  return 2023 + 50 - x  
import numpy as np  
x = np.arange(3,101,3)  
sum=0  
for i in x:  
  sum=sum + i  
print(sum)  
import numpy as np  
x= np.array(\[\[1,2,3,4,5\],\[6,7,8,9,10\]\],int)  
x  
x\[:,1::2\]

728x90