python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Making a little angular resolution calculator in JS but it returns NaN
So, I'm in an astronomy class, and don't have a scientific calculator yet, so as a side project practice sometimes I'll translate a math question that would otherwise be tedious into a JS program so i...
AstralV
Votes: 0
Answers: 0
need to understand how the code is working
num = 2
if num > 1:
for i in range(2, num):
if (num % i) == 0:
print(num, "is not a prime number")
break
else:
print(num, "is a prime ...
Nithin
Votes: 0
Answers: 2
The for loop in my python function is not running
My for loop inside the function "play()" is not getting executed at runtime.
def play():
print("1")
for files in os.listdir(os.getcwd()):
if files.endswith("mp...

Lincoln Jones
Votes: 0
Answers: 2
Regular expression in python to replace last two digits of a column value where if last two digits are 30 then replace it with 50
I have the following data frame
abc=pd.DataFrame()
abc['Col_A']=[1900,1200,1230,1130,1300,0330]
abc
Col_A
0 1900
1 1200
2 1230
3 1130
4 1300
5 0330
from the above data frame I want ...
Annu
Votes: 0
Answers: 1