Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobierenF&A Diskussionen
Numpy
0 Stimmen
2 AntwortenWrong Challenge Answer:
1 Stimme
2 AntwortenPython module
0 Stimmen
5 AntwortenIs there any way to fix this error?
0 Stimmen
1 AntwortWhat is math.e? Что такое math.e?
2 Stimmen
3 Antwortenimport-export js (ru-RU)
0 Stimmen
1 Antwortwhy 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 Stimmen
8 AntwortenHow do I learn a library?
1 Stimme
2 AntwortenPRINT in PYTHON, how?
1 Stimme
2 AntwortenWhat is Radian?
3 Stimmen
4 AntwortenSwift question
0 Stimmen
1 AntwortI'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 Stimmen
4 AntwortenHey 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 Stimmen
3 AntwortenDjnago error
0 Stimmen
2 AntwortenWhy isn't it working properly????
0 Stimmen
2 AntwortenHow to use from keyword in python
0 Stimmen
2 AntwortenI am confused on this
0 Stimmen
1 AntwortWhy not working
-4 Stimmen
4 Antwortencompilition error
-2 Stimmen
2 AntwortenHeute heiß
Help! Images! HTML!
0 Votes
Image doesn't load on html
0 Votes
what concept print(0b1010)
0 Votes
Error
0 Votes