Numpy Array

Anything related to deep learning, machine learning, data science, and artificial intelligence. Course topic requests can go here.
Post Reply
SHRIRANG
Posts: 1
Joined: Thu May 14, 2020 9:15 am

Numpy Array

Post by SHRIRANG » Thu May 14, 2020 9:19 am

As specified in the Udemy Course, I typed the code in Jupyter Notebook but it does not run.
Can you tell me why? or some other alternative to make it run?


Code:

L2 =[]
for e in L:
L2.append(e**2)

lazyprogrammer
Site Admin
Posts: 24
Joined: Sat Jul 28, 2018 3:46 am

Re: Numpy Array

Post by lazyprogrammer » Thu May 14, 2020 9:50 pm

What do you mean by "does not run?"

The #1 source of student error is copying code incorrectly. Therefore, the first thing one should always do is cross-reference with the working code.

You can simply hit the "play" button on Google Colab to confirm that the provided code works.

Post Reply

Return to “General Discussion”