Python Forum
List not passing between methods inside a class definition
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List not passing between methods inside a class definition
#5
Inside the class, you keep printing 'a' but this is the passed argument which is always the same since you don't alter it. Do you mean to print self.a?
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: List not passing between methods inside a class definition - by wavic - Oct-15-2017, 07:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Return a definition samh625 6 2,520 Jul-28-2020, 08:32 AM
Last Post: samh625
  Please, how do I call the method inside this class Emekadavid 1 1,712 Jun-26-2020, 01:26 PM
Last Post: Yoriz
  Child Class, Loop list bjornnotborg 2 2,427 Aug-28-2019, 12:31 PM
Last Post: bjornnotborg
  Methods that return the highest score from the list erfanakbari1 7 7,258 Mar-26-2019, 08:32 PM
Last Post: aankrose
  New to coding. An error occurs with no definition westernwhiskey 4 3,071 Mar-15-2018, 12:37 PM
Last Post: westernwhiskey
  How do you compute tf-idf from a list without using the counter class syntaxkiller 8 5,295 Dec-01-2017, 05:24 PM
Last Post: nilamo
  trouble importing class definition from one .py into another ijosefson 3 3,404 Oct-16-2017, 08:24 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