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
I've been searching through questions on this for hours, and it just isn't working for some reason, so sorry if there's already an answer and I just didn't unde
Is there a nice simple method of delaying a function call whilst letting the thread continue executing? e.g. public void foo() { // Do stuff! // Dela
I intend to clean some data in a MySQL database table for some data that was not properly captured. The table in question contains numerous columns but the colu
The function needs to have a 2d array as a parameter and then return a normal array with all the unique numbers. If the 2d array is [ [1,1], [4,2] ] then it sh
//Program is to collect input from user so that can pass the array of inputs from the user to another print function but that are quite some Errors in the code
The following code is not working as intended when I call the next() function at end of for loop. For some reason only one item from the list is printed and it
I have a very long function whose arguments take in different threshold values for different variables and give an event study result at the end. I want to comp
I have to write a code that makes use of recursion to sum numbers in a list up until the index is equal to a pre-determined integer value. i.e. list = [1,4,8,
Context I have a daywise TUMBLINGWINDOW (similar to the one shown below) SELECT DATEADD(day, -1, System.Timestamp()) AS WindowStart System.Timestamp() A
I am new to c++ and I am wodering how to properly define functions? Right now I am receiving the following errors: Severity Code Description Project File
see the basic function structure function test (first as range) whatever I do inside end function calling the function and first is the address of the first c
I have a school exercise, but im struggling to understand how to do the multiplication table. Could someone please help me? So depending on the number and colu