Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtisQ&A DiscussƵes
Raise?
0 Voto
3 RespostasPython HELP
1 Voto
17 Respostasdef 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 Voto
2 RespostasHey 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 Voto
3 RespostasQuente hoje
Media on HTML
0 Votes
Is Sololearn better or Mimo.org?
1 Votes
How to show img???
0 Votes
How to cast in python
0 Votes
How to solve this
1 Votes
Java project
0 Votes
Jungle capming
0 Votes
JavaScript
0 Votes
Editor HTML
0 Votes