python: could not convert string to float
<p>im submitting this code..</p>

<pre><code>a = float(input())
b = float(input())
c = float(input())

if abs(b - c) &lt; a &lt; (b + c) and abs(a - c) &lt; b &lt; (a + c) and abs(a - b) &lt; c &lt; (a + b):
    print("Perimetro = " + str(a + b + c))
else:
    print("Area = " + str(((a + b) * c) / 2))
</code></pre>

<p>and for me it was correct, but, as a response, i get: </p>

<pre><code>Traceback (most recent call last):
  File "Main.py", line 1, in &lt;module&gt;
    a = float(input())
ValueError: could not convert string to float: '6.0 4.0 2.0'
Command exited with non-zero status (1)
</code></pre>

<p>which i dont get it cause i converted the strings in the begginning.</p>

<p>what am i doing wrong here?</p>

<p>thanks x</p>