Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function call
#1
I have a very simple question. I need a function that calls two functions. I have been trying with "add (function1 , function2)" but it doesn't work. One fucntion returns a string value and the other a numeric.
Thanks and sorry for not being able to specify more.
Reply
#2
(Dec-29-2017, 09:56 PM)Antonio_Gallardo Wrote: but it doesn't work.

What does that mean? Is there an error?
Reply
#3
missing round brackets
add (function1() , function2())
also you need to change the string to a numeric when you add them.
When my code doesn't work I don't know why **think** and when my code works I don't know why **think**
Reply
#4
or if trying to add:
result = function1() + function2()
print(result)
# or simply
print(function1() + function2())
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  can you call a function from a list? KEYS 20 6,077 Nov-10-2020, 06:36 PM
Last Post: KEYS
  Programming (identifier, literal and function call) ledangereux 5 4,939 May-05-2020, 12:37 PM
Last Post: gumi543
  Calling function-- how to call simply return value, not whole process juliabrushett 2 3,189 Jul-01-2018, 01:17 AM
Last Post: juliabrushett
  Error is function call Oracle_Rahul 2 3,125 Sep-21-2017, 06:04 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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