1, mean, format usage
1 Import numpy AS NP 2 # "Import numpy AS NP" meaning assigning numpy to np, np below which represents numpy. . 3 List1 = [91 is, 95, 97, 99 ] . 4 averange = np.mean (List1) . 5 # "np.mean" averaging list "list1" numpy in the database, mean mean averaging . 6 Print ( ' GPA} is { ' .format (averange)) . 7 # For printing average list1 directly "print (averange)", the result "95.5" 8 # front to increase the average string in the format: print ( "str {}". format ())