Python Forum
Why is the function returning None for a * b instead of number?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why is the function returning None for a * b instead of number?
#2
Functions without return or yield are returning None.

One possible solution could be that five returns 5, times returns mulitple operator and integer provided as argument and seven uses times function results to multiple with 7.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: Why is the function returning None for a * b instead of number? - by perfringo - Oct-28-2020, 06:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why my function is returning None? PauloDAS 6 3,548 Jul-17-2022, 11:17 PM
Last Post: Skaperen
  Checking the number of arguments a function takes Chirumer 3 3,102 Jul-06-2021, 04:56 PM
Last Post: Chirumer
  Pausing and returning to function? wallgraffiti 1 2,938 Apr-29-2021, 05:30 PM
Last Post: bowlofred
  is there a single function to confine a number between two others? Skaperen 7 4,239 Nov-28-2020, 06:10 PM
Last Post: Skaperen
  Having hard time understanding the function self-returning itself twice jagasrik 2 3,406 Aug-15-2020, 08:50 PM
Last Post: deanhystad
  RuntimeError: Optimal parameters not found: Number of calls to function has reached m bntayfur 0 7,680 Aug-05-2020, 04:41 PM
Last Post: bntayfur
  basic random number generator in replace function krug123 2 3,025 Jul-31-2020, 01:02 PM
Last Post: deanhystad
  Returning Value from Function with Trackbars vicpylon 3 3,234 May-24-2020, 11:28 PM
Last Post: bowlofred
  Nested Recursive Function not Returning Etotheitau 2 3,313 May-09-2020, 06:09 PM
Last Post: Etotheitau
  Mysql returning number of rows not data AkaAndrew123 4 4,274 Jun-10-2019, 02:31 PM
Last Post: AkaAndrew123

Forum Jump:

User Panel Messages

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