# pie_chart_python.py
# September - 2026
# RJM Programming
# Thanks to https://www.w3schools.com/python/default.asp

import matplotlib.pyplot as plt
import numpy as np

nums = []
sofar = 0
while sofar < 100:
  print(f"Enter your percentage value regarding a pie chart where so far {sofar} has already been allocated.")
  anum = input()
  nums.append(int(anum))
  sofar += int(anum)
  
y = np.array(nums)

plt.pie(y)
plt.show() 

exit()


  
