LDSSA / batch-admissions

0 stars 1 forks source link

Matplotlib Exercise 6 #5

Open T-Atalaia opened 3 months ago

T-Atalaia commented 3 months ago

In this exercise the issue is that the instructions may be a bit misleading, for our coding habits. The instructions ask to...

Define the bin edges by creating a list between 40000 usd and 16000 usd with steps of 10000 usd

  1. It misses a '0' on '16000'. It should be '160000'.

  2. To create a list between 40000 and 160000 with steps of 10000, some would use list(range(40000, 160001, 10000)), so it includes '40000' and '160000' as first and last element of the list. However, to pass the asserts you must use list(range(40000, 160000, 10000)), excluding '160000'.

majkah0 commented 2 months ago

Corrected. It makes sense to exclude 160 000, this value should already go to the next bin.