Обсуждения
ValueError won’t work
0 голосов
3 ответовprint(1)
raise ValueError
print(2)
0 голосов
1 ответПочему выдается ошибка?
2 голосов
3 ответовNeed to why i am getting this error
0 голосов
3 ответовPython HELP
1 голос
17 ответовWhy this code does not run?
0 голосов
1 ответdef 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 голосов
2 ответовWhat am I doing wrong?
0 голосов
3 ответовHey 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 голосов
3 ответовАктуальное сегодня
Pig Latin
0 Votes
Someone can help me
0 Votes
Square Roots
0 Votes
What's wrong with this?
2 Votes
I’m new someone can help me
0 Votes
HTML community, HELP!!
0 Votes
What's doctype htMl
2 Votes
How this program executes?
0 Votes