Hack Forums
[Python] Using another function as input to a new function? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] Using another function as input to a new function? (/showthread.php?tid=3753725)



Using another function as input to a new function? - success = true - Sep 14, 2013

Can someone fix/redirect me in the right path for this?

[Image: a3491d8fe2f72eaf419666bd6d2e33dc.png]

I get

[Image: fc23803d4f73d32a3d8d1d83d0214e8b.png]


* - 3 Hunna - Sep 14, 2013

Can you provide the full code? It is is expecting 4 arguments different than what you are providing it. It would be helpful if I could see exactly what is being returned in your functions.


* - ßlack мesa - Sep 14, 2013

Hmmm, not exactly sure as to what you mean. Try something like this:
Code
checkOne = checkName(characterName())  # Include the brackets!!



* - Dmaster_773 - Sep 14, 2013

(Sep 14, 2013 12:15 PM)ßlack мesa Wrote:  Hmmm, not exactly sure as to what you mean. Try something like this:
Code
checkOne = checkName(characterName())  # Include the brackets!!

I don't think that this is it...
(pretty sure characterName would be a variable; even though PEP standards dictate that variables_should_be_underscore_seperated and functionNamesShouldBeCamelCase)

Whole code would be required to see what you have done wrong; I think it might be that the checks are being run, and return a None value, so that nothing is passed into the next function?