This problem exists in both Exercises and Solutions.
Currently in Exercise 2: the 2nd Hint suggests Patient.Age can be a random number or a constant.
But this is not in the right context for this exercise, instead this hint should be in Exercise 3 where the user needs to define the age for the Patient class, and it perhaps should also be Patient.age.
In Exercise 3, it should also be made clear that the goal of the function is to add new patients with random generated numbers, not predefined values (for example, manually create 5 entries of Patient with user defined unique ID and age).
This problem exists in both Exercises and Solutions.
Currently in
Exercise 2
: the 2nd Hint suggestsPatient.Age
can be a random number or a constant.But this is not in the right context for this exercise, instead this hint should be in
Exercise 3
where the user needs to define the age for the Patient class, and it perhaps should also bePatient.age
.In Exercise 3, it should also be made clear that the goal of the function is to add new patients with random generated numbers, not predefined values (for example, manually create 5 entries of Patient with user defined unique ID and age).