Python Forum
Need help with a function that calls other functions.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with a function that calls other functions.
#2
Your last function is calling itself on line 48. This will go on forever, since there is nothing to stop the function between the start of the function and it calling itself.

It's not sure what you are trying to do here. Do you want the last function to add, subtract, and divide a and b? If so, you don't need a loop, but you need to call those functions with a and b as parameters (just like you do in all of your test code).

In the future, please describe the error you are having, including the full text of any error messages. It makes it much easier on our end.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: Need help with a function that calls other functions. - by ichabod801 - Sep-30-2019, 06:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  asyncio calls within sync function ( Websocket on_open) orion67 0 1,374 Jan-16-2022, 11:00 AM
Last Post: orion67
  Calls to Attributes of a Class SKarimi 3 3,338 Apr-22-2021, 04:18 PM
Last Post: SKarimi
  Combine Two Recursive Functions To Create One Recursive Selection Sort Function Jeremy7 12 7,194 Jan-17-2021, 03:02 AM
Last Post: Jeremy7
  list call problem in generator function using iteration and recursive calls postta 1 1,862 Oct-24-2020, 09:33 PM
Last Post: bowlofred
  RuntimeError: Optimal parameters not found: Number of calls to function has reached m bntayfur 0 6,073 Aug-05-2020, 04:41 PM
Last Post: bntayfur
  Run a timer when a functions starts to see how long the function takes to complete Pedroski55 2 1,948 Apr-19-2020, 06:28 AM
Last Post: Pedroski55
  How to split a string containing function calls? Metalman488 4 2,845 Oct-27-2018, 06:50 PM
Last Post: Metalman488
  call a function from other functions ... evilcode1 2 2,693 Sep-05-2018, 09:07 AM
Last Post: evilcode1
  Testing function calls jenselme 1 2,649 Jul-25-2018, 10:33 AM
Last Post: Larz60+
  argument parser: to execute single function, and subsequent functions also raghu 10 5,764 Mar-12-2018, 06:57 AM
Last Post: wavic

Forum Jump:

User Panel Messages

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