exercise 3: iterate through each number

Anything related to deep learning, machine learning, data science, and artificial intelligence. Course topic requests can go here.
Post Reply
ohmy
Posts: 3
Joined: Fri Nov 26, 2021 4:18 pm

exercise 3: iterate through each number

Post 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!
lazyprogrammer
Site Admin
Posts: 62
Joined: Sat Jul 28, 2018 3:46 am

Re: exercise 3: iterate through each number

Post 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.
Post Reply

Return to “General Discussion”