Skip to content

Commit

Permalink
Solution
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhurarostislav committed Oct 28, 2023
1 parent 8b3dde7 commit 27022de
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import random
import matplotlib.pyplot as plt
# import matplotlib.pyplot as plt


def flip_coin() -> dict:
Expand All @@ -23,14 +23,14 @@ def flip_coin() -> dict:
return result


result = flip_coin()

xpoints = result.keys()
ypoints = result.values()

plt.plot(xpoints, ypoints)
plt.ylim(0, 100)
plt.title("Gaussian distribution")
plt.xlabel("count of heads")
plt.ylabel("Percent")
plt.show()
# result = flip_coin()
#
# xpoints = result.keys()
# ypoints = result.values()
#
# plt.plot(xpoints, ypoints)
# plt.ylim(0, 100)
# plt.title("Gaussian distribution")
# plt.xlabel("count of heads")
# plt.ylabel("Percent")
# plt.show()

0 comments on commit 27022de

Please sign in to comment.