munch2024 / munch

2 stars 11 forks source link

2.2 Code is unreadable, needs comments #79

Closed noodaj closed 8 months ago

noodaj commented 8 months ago

For #77 which was fixed recently, we see that there is no documentation for the code that was provided by ChatGPT. Without documentation, it makes the code hard to read and understand.

These two lines of code are quite hard to understand if you have no experience with python. With the

 if any(count == 1 for count in frequency.values()):
      return -1
  total_steps = sum(math.ceil(count / 3) for count in frequency.values())