Put the following lines of code in the right order so that they result in a Bubble chart. Mind that the line with the items variable should follow the library import statement.
Matplotlib bubble chart
Re-arrange the code
Report a typo
Put the items in the correct order
avg_price = [14, 48, 12, 37, 20]
items = range(1, 6)
avg_package = [price * 50 for price in avg_price]
import matplotlib.pyplot as plt
plt.scatter(items, avg_price, s=avg_package)
plt.show()
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.