Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NameError:
#11
Quote:Is there a reason that you're picking out particular parts, rather than using the entire script?

I was trying to understand bits of code before I looked at the whole code. I'm a beginner.
Reply
#12
(Sep-29-2022, 11:17 PM)azizrasul Wrote: I was trying to understand bits of code before I looked at the whole code. I'm a beginner.

Well, okay, if that works for you, but as you've discovered, if you simply chop out a part of a script, without knowing anything about said script, you will (as likely as not) create errors from which you've no idea how to recover.

Study the code that others have written, by all means (it's not a bad way to learn), but do so line-by-line, so that you fully understand what each and every line of code doing.

b.t.w, it's considered common courtesy, to thank the people who give up their time in order to help others. Two OPs and myself have replied to you, but you've not thanked anyone.
Sig:
>>> import this

The UNIX philosophy: "Do one thing, and do it well."

"The danger of computers becoming like humans is not as great as the danger of humans becoming like computers." :~ Konrad Zuse

"Everything should be made as simple as possible, but not simpler." :~ Albert Einstein
Reply
#13
Many thanks to all who contributed.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  NameError: NameError: global name 'BPLInstruction' is not defined colt 7 4,392 Oct-27-2019, 07:49 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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