Last active
February 21, 2021 12:53
-
-
Save AlicanAKCA/361e8a7607ff5bc6257e3960b0e76598 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matplotlib import pyplot as plt | |
from random import randint | |
num1 =0 | |
num2=0 | |
summary = 0 | |
mean = 0 | |
numberOfBeats = 0 | |
plt.title('') | |
plt.ylabel('Mean') | |
plt.xlabel('Number Of Beats') | |
x = [] | |
y = [] | |
while num2 <= 10000: | |
num1 = 0 | |
mean = 0 | |
while num1<=100: | |
sumamry += randint(1,6) | |
num1 +=1 | |
numberOfBeats += 100 | |
mean = summary /numberOfBeats | |
y.append(mean) | |
x.append(numberOfBeats) | |
num2 += 1 | |
print(x) | |
print(y) | |
plt.plot(x,y, color = "red") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment