Python Forum
Loop Value Stays the Same
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loop Value Stays the Same
#7
As the error states, you did not define W. You did define self.W in your __init__, but that does not allow you to reference W anywhere in the class. You need to use self.W to refer to the self.W you created in __init__ (and self.X, self.yd, self.z, self.y1, and so on).
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Loop Value Stays the Same - by nesrine - Nov-22-2018, 07:54 PM
RE: Loop Value Stays the Same - by woooee - Nov-22-2018, 09:07 PM
RE: Loop Value Stays the Same - by nesrine - Nov-22-2018, 10:47 PM
RE: Loop Value Stays the Same - by ichabod801 - Nov-22-2018, 10:57 PM
RE: Loop Value Stays the Same - by stullis - Nov-23-2018, 05:13 PM
RE: Loop Value Stays the Same - by nesrine - Nov-28-2018, 10:42 AM
RE: Loop Value Stays the Same - by ichabod801 - Nov-28-2018, 02:31 PM

Forum Jump:

User Panel Messages

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