¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuitaSesiones de PyR
ValueError won’t work
0 Votos
3 RespuestasПочему выдается ошибка?
2 Votos
3 RespuestasRaise?
0 Votos
3 RespuestasPython HELP
1 Voto
17 Respuestasdef manipulate_data(n):
positives,negatives=[],[]
if not isinstance(n,list):
raise ValueError
return
else:
for i in n:
if i>=0:
positives.append(i)
if i<0
negatives.append(i)
new=[len(positives,sum(negatives)]
return new.
Someone kindly assist I keep running it in unitests and I keep getting errors.
Here's the question:
0 Votos
2 RespuestasWhat am I doing wrong?
0 Votos
3 RespuestasHey 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 Votos
3 RespuestasEn tendencia hoy
Image doesn't load on html
1 Votes
what concept print(0b1010)
0 Votes
HTML CSS - Filter: brightness()
0 Votes
Error
0 Votes
Need help pls
1 Votes
python courses
0 Votes