Discussions Q&R
What is error in it???
0 Vote
2 RéponsesSwift question
0 Vote
1 RéponseNumpy
0 Vote
2 RéponsesPython module
0 Vote
5 RéponsesPRINT in PYTHON, how?
1 Vote
2 Réponseswhy 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 Vote
8 RéponsesWhat is Radian?
3 Votes
4 RéponsesI'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 RéponsesHey 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 Vote
3 RéponsesDjnago error
0 Vote
2 RéponsesI am confused on this
0 Vote
1 RéponseWhy not working
-4 Votes
4 Réponsescompilition error
-2 Votes
2 RéponsesAujourd'hui en vedette
overloading operators << >>
1 Votes
how does this code function?
0 Votes
.
1 Votes
Wishkit alternative for android
1 Votes
.
0 Votes
Hi
0 Votes
Issue in code
0 Votes
My question is about python?
0 Votes
i need to learn Coding
0 Votes