Advertisement
FelipeNeto2

gráfico de números aleatórios(PYTHON)

Dec 11th, 2019
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. from matplotlib import pyplot as plt
  2. import random
  3. # Add your code below:
  4. numbers_a = range(1, 13)
  5.  
  6. numbers_b = []
  7. for i in range(12):
  8.   numbers_b.append(random.randint(1,13))
  9.  
  10. plt.plot(numbers_a, numbers_b)  
  11. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement