Discussions Q&R
ValueError won’t work
 0 Vote
 3 RéponsesПочему выдается ошибка?
 2 Votes
 3 RéponsesRaise?
 0 Vote
 3 RéponsesPython HELP
 1 Vote
 17 Réponsesdef 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 Vote
 2 RéponsesWhat am I doing wrong?
 0 Vote
 3 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éponsesAujourd'hui en vedette
Can i code here? Or just learn?
 1 Votes
Why Lazy?
 1 Votes
Quiz App: Step 3, Restart Button 
 0 Votes
Catch the ball
 0 Votes
It's app not running properly?
 1 Votes
Running a python code
 1 Votes
Web development
 0 Votes
PHP
 0 Votes