return two values from webservice
Is is possible to return two values from a WebService to jQuery.
Is is possible to return two values from a WebService to jQuery.
I have this function that calls itself:
I’ve been able to verify that the findUniqueWords does result in a sorted list. However, it does not return the list. Why?
Consider three functions:
I would like to return two values from a function in two separate variables.
For example:
I really do not understand, why the code def isIn(char, aStr): ms = len(aStr)/2 if aStr[ms] == char: print 'i am here now' return True elif char>aStr[ms] and not ms == len(aStr)-1: aStr = aStr[ms+1:] elif char <aStr[ms] and not ms == 0: aStr = aStr[0:ms] else: return False isIn(char, aStr) print isIn('a', 'ab') does … Read more
So I am working on a chat-bot for discord, and right now on a feature that would work as a todo-list. I have a command to add tasks to the list, where they are stored in a dict. However my problem is returning the list in a more readable format (see pictures).
I have a function where I need to do something to a string. I need the function to return a boolean indicating whether or not the operation succeeded, and I also need to return the modified string. In C#, I would use an out parameter for the string, but there is no equivalent in Python. … Read more
I found the following behavior at least weird: