Python Forum
Class method returning multiple values,dont know which is returned when..
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Class method returning multiple values,dont know which is returned when..
#3
Hello, I am still not clear what do you mean??

I get output as following when I run it in loop

Quote:returnvalue 0.0 9.0
returnvalue 0.0 7.59979666373
returnvalue 0.0 7.59979666373
returnvalue 0.0 7.59979666373
returnvalue 0.0 7.59979666373
returnvalue 3.8855839217 7.59979666373
returnvalue 5.3895954547 7.59979666373
returnvalue 7.12194804382 7.59979666373
returnvalue 7.26688561137 7.59979666373
returnvalue 7.26688561137 7.42555000493
returnvalue 7.26688561137 7.42555000493
returnvalue 7.41097079158 7.42555000493

for the first iteration (0 , 9) is the return than (0 , 7.599) so I only want to append like (0, 9, 7.599, 3.88,  5.38, )
Reply


Messages In This Thread
RE: Class method returning multiple values,dont know which is returned when.. - by ujjwalrathod007 - Sep-29-2016, 12:20 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Method returning None husksedgier 2 401 May-04-2024, 06:38 PM
Last Post: husksedgier
  class definition and problem with a method HerrAyas 2 409 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  Printing out incidence values for Class Object SquderDragon 3 482 Apr-01-2024, 07:52 AM
Last Post: SquderDragon
  super() and order of running method in class inheritance akbarza 7 971 Feb-04-2024, 09:35 AM
Last Post: Gribouillis
  __init__() got multiple values for argument 'schema' dawid294 4 3,190 Jan-03-2024, 09:42 AM
Last Post: buran
  How to access values returned from inquirer cspower 6 1,075 Dec-26-2023, 09:34 PM
Last Post: cspower
  Can I use logging in a class (without multiple messages) mevan 2 704 Oct-16-2023, 11:08 PM
Last Post: mevan
  Code is returning the incorrect values. syntax error 007sonic 6 1,454 Jun-19-2023, 03:35 AM
Last Post: 007sonic
  Using one child class method in another child class garynewport 5 1,794 Jan-11-2023, 06:07 PM
Last Post: garynewport
  I dont know why my function won't work? MehHz2526 3 1,316 Nov-28-2022, 09:32 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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