Page 1 of 1

exercise 3: iterate through each number

Posted: Sun Jan 02, 2022 11:27 am
by ohmy
I'm having some issues with exercise 3 on NumpyExercises

I'm using this solution:
https://github.com/lazyprogrammer/machine_learning_examples/blob/master/numpy_class/exercises/ex3.py
on Colab.
The issue is I'm only getting number 9 and not the full range of numbers.
I tried modifying the script to force it to go through each number but with no success.
The only thing I get is number 9 repeated several times.

Thanks!

Re: exercise 3: iterate through each number

Posted: Mon Jan 03, 2022 2:15 am
by lazyprogrammer
Thanks for your inquiry.

Are you sure you've run the script without any changes?

Many students promise they haven't made any changes, but I usually have to ask a few times before they admit that they have.