'Inspiration 1 – 신청 희망자 사전 점검'에 답변달기

#11888
ryintl14

안녕하세요!

import numpy as np

randomNumber=np.random.randint(1,11, 20)
for i in randomNumber:
    if i <4:
        print("Low", i)
    elif i<7:
        print("Medium", i)
    else :
        print("High", i)


Result : 
Low 2
Medium 4
Low 2
Medium 6
Low 2
Low 1
Medium 4
Low 1
Medium 4
Low 3
High 7
Low 1
Medium 4
Medium 4
High 7
Medium 4
High 10
High 7
Medium 6
High 9