1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # # µû¶óÇÏ¸ç ¹è¿ì´Â ÆÄÀ̽ã°ú µ¥ÀÌÅÍ°úÇÐ(»ý´ÉÃâÆÇ»ç 2020) # LAB 10-2 ¿©·¯ »ç¶÷ÀÇ BMI¸¦ ºü¸£°í °£ÆíÇÏ°Ô °è»êÇϱâ, 256ÂÊ # import numpy as np heights = [ 1.83, 1.76, 1.69, 1.86, 1.77, 1.73 ] weights = [ 86, 74, 59, 95, 80, 68 ] np_heights = np.array(heights) np_weights = np.array(weights) bmi = np_weights/(np_heights**2) print('´ë»óÀÚµéÀÇ Å°:', np_heights) print('´ë»óÀÚµéÀÇ ¸ö¹«°Ô:', np_weights) print('´ë»óÀÚµéÀÇ BMI') print(bmi) | cs |