« first day (3479 days earlier)      last day (638 days later) » 

12:07 AM
nth dupicate of "group and sum" stackoverflow.com/q/73228871/2943403
 
 
2 hours later…
 
2 hours later…
4:30 AM
unclear duplicate (no mcve) stackoverflow.com/q/73229953/2943403
 
 
3 hours later…
7:53 AM
let persons = [
{ name: "Amit", age: 27, dob: "02/12/1994" },
{ name: "Priya", age: 30, dob: "06/09/1998" },
{ name: "Karuna", age: 25, dob: "11/27/1993" },
{ name: "Bholu", age: 28, dob: "12/16/1993" },
{ name: "Shive", age: 100, dob: "06/16/1993" },
{ name: "Ganesh", age: 50, dob: "11/24/1992" },
];
const personsData = persons;
console.log(
...personsData.sort((a, b) => {
var data1 = new Date(a.dob);
var date2 = new Date(b.dob);
return data1 - date2;
})
);
 
1 message moved from JavaScript
1 message moved from JavaScript
 
 
1 hour later…
9:18 AM
-3
Q: How to call variables in another Python file?

bsgHow to call variables in another Python file? When I press the 'Run' button in the program, the image file is retrieved from 'Calc.py' - 'Class Run' - 'def calc_run'. And 'Calc_algo.py' - 'Class Data_calc' - 'def calc_run' calculates num_A, num_B, num_C and shows Figure. By the way, I want to put...

 
 
1 hour later…
 
2 hours later…
12:54 PM
-1
Q: how to create a function within a class that calculates the goal difference between soccer teams? im a beginner to OOP

Annie Nguyenheres the task discription my code looks like this class SoccerTeam(): def __init__(self, name): self.__name = name self.__won = 0 self.__draws = 0 self.__lost = 0 self.__score = 0 self.__goalFor = 0 self.__goalAgainst = 0 def add_...

-1
Q: Why does the one function return a value but the other one returns nothing?

Kelan Westwoodclass Player: def __init__(self): self.window = pygame.display.set_mode((1280, 800)) # Connecting to the database self.conn = sqlite3.connect('/Users/kelanwestwood/Desktop/College Computer science project/Cvs ' 'project/FifaStats.db') self.cur = self.conn.cursor() sel...

 
 
3 hours later…

« first day (3479 days earlier)      last day (638 days later) »