Skip to main content
Advice
0 votes
23 replies
521 views

With the AI being so powerful, we should have a better programming language. This language is named cpluz/cz, signifying that it is generally between C and C++, but with some differences. Because its ...
jerry zhang's user avatar
2 votes
2 answers
242 views

The following code contains two patterns, the first pattern is (1)?, and the second pattern is (1)?\1. The output of findall_no_reference is correct because it contains the last empty string, but the ...
stackbiz's user avatar
  • 2,016
3 votes
2 answers
91 views

I'm trying to fix a CSV file I received in which actual new lines were inserted throughout the data, effectively splitting one row of data into multiple ones with incomplete columns. The line breaks ...
Lyran's user avatar
  • 33
Advice
0 votes
6 replies
102 views

I know it seems like a very stupid question, but my brother said it was easy, so I wonder now if yml is easier than python. He says it's just remembering names and values which does make it seem ...
mag bit's user avatar
1 vote
2 answers
125 views

I have a value that always needs to be defined but may not always be meaningful, and I need a placeholder for when it doesn't yet have a meaningful value. Usually, I would use None as that placeholder ...
Anerdw's user avatar
  • 3,526
Advice
2 votes
2 replies
190 views

Good day everyone, I'm honestly feeling a bit lost right now and could really use some advice about my career, my growth, and my place in programming. This is my background: I work with an ...
Opeyemi Dominion Olaitan's user avatar
1 vote
3 answers
115 views

I have the following code: class Identity: def __init__(self, value): self.value = value def __get__(self, obj, objtype=None): return self.value def __set__(self, obj, ...
schuelermine's user avatar
  • 2,467
3 votes
1 answer
123 views

I'm working on a personal project that needs the exact Fear & Greed Index values displayed on Paribu's trend page: https://www.paribu.com/kripto-trend-analizi The page shows a chart with 1H/4H/1D/...
MiaTone's user avatar
  • 31
Best practices
1 vote
13 replies
137 views

import math import matplotlib.pyplot as plt import numpy as np m=50 def taylor_cos(x,n): sum=0 for i in range(0, n): sum=sum+ (((-1)**i) * (x**(2*i)) / math.factorial(2*i)) ...
Artemii Karapetian's user avatar
Advice
0 votes
4 replies
103 views

I am using python and gspread to manipulate a google sheet and want to be able to track how many rows have been processed. I can pull then number of rows in the sheet by doing num_rows = len(sheet....
Jon's user avatar
  • 173
2 votes
2 answers
102 views

I've been messing around with OpenGL/ModernGL in Python/Pygame, and after getting my images rendered to the screen, I have been having issues rotating them. I'm aware of the order that I need to ...
user32678267's user avatar
Best practices
0 votes
11 replies
93 views

I was hoping to get some help with my little project where I noticed that I would need to be using Database instead of local Json files to deal with frontend dynamic content. So I have a dropdown ...
erotski's user avatar
  • 53
3 votes
1 answer
135 views

The interpreter crashes when reading ^4. I know ^\ is SIGQUIT. I tested other sequences, and I didn't find anything else that crashes the interpreter. I also ran stty -a, which yielded this: speed ...
segfault's user avatar
  • 288
Advice
1 vote
4 replies
116 views

Title: Designing rewrite rules for logical expressions in Python I'm building a small symbolic logic system in Python, and I'm trying to figure out how to implement rewrite rules for logical ...
Jasper's user avatar
  • 149
2 votes
1 answer
99 views

I have an xarray DataArray that contains daily data for every day from 1970 to 2023 for the months October through March, and I want to calculate the average value of the variable for each day (e.g. ...
Ramiro chalar's user avatar

15 30 50 per page
1
2 3 4 5 6