Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in code
#1
I got the following error when coping Python code from :

Implementing a Neural Network from Scratch in Python

How do I get rid of the error?

R,

ErnestTBass

Attached Files

Thumbnail(s)
   
Reply
#2
Here it is. How do I get rid of it.

Respectfully,

ErnestTBass

Attached Files

Thumbnail(s)
   
Reply
#3
Please read https://python-forum.io/misc.php?action=help&hid=25 and stop pasting images!
Reply
#4
I pasted he image because you asked me to. I am quite new to Python and I thought posting this would help.

The code or image is from a Jupyter folder. I thought that would help.

The code is in the image. I just do not understand what is wrong. I have programmed for years, but never in Python.

If you want to see the code what is wrong with the image pasting?

It would help if you told me what you wanted and stopped criticizing.

I have posted images on forums before this one and no one complained.

What is wrong with the code.

Respectfully,

ErnestTBass
Reply
#5
Quote:EarnestTBass wrote:
I pasted he image because you asked me to
No, please refer to moderator note on first post

Quote:Moderator Note:
The image does not fully show error.
Please cut and paste the code.

Please see: https://python-forum.io/misc.php?action=help&hid=21
Reply
#6
(Nov-27-2018, 12:44 PM)ErnestTBass Wrote: If you want to see the code what is wrong with the image pasting?
Whoever wants to run your code will need to type it. It's more easy to copy/paste the code - both for you (post in python tags) and us - to run the code and help you. You are asking for help. Help us to help you.

(Nov-27-2018, 12:44 PM)ErnestTBass Wrote: It would help if you told me what you wanted and stopped criticizing.
You were advised what to do. In addition you are expected to have read and adhere to the forum rules before posting for first time.

(Nov-27-2018, 12:44 PM)ErnestTBass Wrote: I have posted images on forums before this one and no one complained.
Different forums/different rules. If you don't like it - ask your question elsewhere. By the way on all forums/programming comunities where I actively participate, I have never seen images of code being welcome (except in rear cases where it helps to clarify the actual setup/question, when the person asking is not clear).

(Nov-27-2018, 12:44 PM)ErnestTBass Wrote: What is wrong with the code.
Follow the moderator's request if you want an answer.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020