New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
Wrong Challenge Answer:
1 Vote
2 AnswersPython module
0 Votes
5 Answersimport-export js (ru-RU)
0 Votes
1 Answerwhy is it not running?
import java.util.Scanner;
public class Myclass{
public static void main(String [] args){
Scanner in = new Scanner(System.in);
String a;
int b;
System.out.println("enter a word");
a = in.nextLine();
System.out.println("enter repetition")
b = in.nextInt();
for ( int = 0; x < b; x = x++)
System.out.println(a);
}
}
0 Votes
8 AnswersPRINT in PYTHON, how?
1 Vote
2 AnswersWhat is Radian?
3 Votes
4 AnswersSwift question
0 Votes
1 AnswerI'm trying to calculate the decimal places of pi with Ramanujan's formula. but with this code I'm getting the same output for all values of n, which it shouldn't.
from math import sqrt, factorial as f
sum=0
n=0
k=(2*sqrt(2)/9801)
while n<=100000:
sum=sum+((f(4*n))*(1103+(26390*n)))/(((f(n))**4)*(396**(4*n)))
y=1/(k*sum)
print('%.60f' % y)
n=n+1
where am I doing wrong?
2 Votes
4 AnswersHey there,
I don't know why, but when I import tkinter on IDLE like this:
from tkinter import *
And I say:
window = Tk()
Even known I use python 3.2.5, which should be able to use Tkinter, the python shell raises a ValueError that says that Tk() is not defined. I am very sure I use python 3.2.5 and tutorials from the Python Foundation say that is what I have to do. But it still doesn't work.
Does anyone have an idea of how to solve this problem? Thank you!
0 Votes
3 AnswersDjnago error
0 Votes
2 AnswersI am confused on this
0 Votes
1 AnswerWhy not working
-4 Votes
4 Answerscompilition error
-2 Votes
2 AnswersHot today
Hello
0 Votes
Kotlin programing
0 Votes
[SOLVED] About split() Function
1 Votes
Which coding language?
2 Votes
From code challenges
0 Votes