Skip to content

Commit

Permalink
Solution2
Browse files Browse the repository at this point in the history
  • Loading branch information
dissom committed Jan 14, 2024
1 parent 048c0d7 commit 07d9efb
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import random
import matplotlib.pyplot as plt
from decimal import Decimal
from typing import Callable
# import matplotlib.pyplot as plt
# from typing import Callable


def flip_coin(
Expand All @@ -24,15 +24,15 @@ def flip_coin(
return percentage


def draw_gaussian_distribution_graph(flip_coin: Callable) -> None:
data = flip_coin()
data_sorted = dict(sorted(data.items()))

x_points = list(data_sorted.keys())
y_points = list(data_sorted.values())

plt.xlim(0, 10)
plt.ylim(0, 100)

plt.plot(x_points, y_points)
plt.show()
# def draw_gaussian_distribution_graph(flip_coin: Callable) -> None:
# data = flip_coin()
# data_sorted = dict(sorted(data.items()))
#
# x_points = list(data_sorted.keys())
# y_points = list(data_sorted.values())
#
# plt.xlim(0, 10)
# plt.ylim(0, 100)
#
# plt.plot(x_points, y_points)
# plt.show()

0 comments on commit 07d9efb

Please sign in to comment.