I'm experiencing strange behaviour on two Postgres functions returning a single bigint value. The first one returns the correct value while the second one throw
im looking for a better way to write this code each function searches for the image using cv2 and pyautogui through python-image search. the code works well but
I used the following code to define my linked list, nodes and a few functions. class node: def __init__(self,node_data): self.__data=node_data
I am trying to write a simple code that displays 3 sets of greetings in accordance to what day of the week a user inputs. I am learning about functions as I am
First, please check my code. const [name, setName] = useState('nick'); const handleChangeName = (e) => { setName(prevState => e.currentTarget.value) }
Let there be a set A = {1,2,3}. The goal is to compute all bijections on AxA. It should be of type Set<Function<T,T>> so that in t
I have a nested list (datalist) which I'd like to repeat the following function for. Within datalist are multiple dataframes (e.g., A-F). After doing the follow
How can I create a loop or a function to open many shapefiles at the same time where the names of the shapefiles change very little? For example with the data b
Both the first and second functions (n1 and n2) output a random number from their respective arrays into the console. Issues arise when I try to add these two g
I have Azure function in V4. and I have host.json as it is mentioned that maxConcurrentRequests is 10 but at the time of execution azure function ignores this s
This is a sample database from a function can someone help me to send the output of function to list as shown in the screenshot [this function "getDistrict_Na
This is a sample database from a function can someone help me to send the output of function to list as shown in the screenshot [this function "getDistrict_Na
Before to submit the doubt that I have, let me start from preamble that I'm definitively a newbie on MongoDB world ;( but I'm going to learn quickly! The goal t
I'm working on a project where I'd like to create the following pattern: X XX XXX XXXX .. and so forth. There are twenty rows in all, and the twentieth row sho
I have the following problem where roles = models.StringField def role(player): if player.rank == 1: return 'leader' else: return 'memb
I created this function and want to call the returned result but, I'm not sure how to get the variable back. If possible I'd also like a different message to po
I am a beginner in Python3 and was learning the basics during the last few weeks. I decided to use my knowledge and was trying to build a text-based game based
def readParksFile(fileName="national_parks(1).csv"): nationalParks = open(fileName) headers = nationalParks.readline() keys = headers.split(",")
I made a struct Triangle and I made a function to calculate p(perimeter/2). When I call the function inside printf it works. But when I call the same function a
I'd like to iterate between two vectors applying the following function to a dataframe. Since the dataframe is huge and I know that the apply family functions