+ 3
I cant run it and facing errore.What should I do?
num = input(":") if float(num)<0: raise ValueError("Negative!")
3 Respuestas
+ 4
There is an IndentationError because you have an extra space before if statement.
num = input(":")
if float(num)<0:
raise ValueError("Negative!")
Just remove extra space and your problem will be solved.
+ 2
Tnx, elder
0
num = input(":")
if float(num)<0:
raise valueerror("negative!")