All problems
MediumNumPy
NumPy — arrays + vectorisation
Convert a list of order values to numpy and apply an 18% GST in one operation.
- #numpy
- #vectorisation
Sample input
[1500, 2400, 850, 3200, 950, 1800]
Sample output
[1770. 2832. 1003. 3776. 1121. 2124.]
numpy-arrays.pyneeds: numpy
Output
Press "Run code" to execute.
