<p>In <em>C++</em>, I can have take input like this: </p>

<pre><code>cin &gt;&gt; a &gt;&gt; b &gt;&gt; c;
</code></pre>

<p>And <code>a</code> can be <code>int</code>, <code>b</code> can be <code>float</code>, and <code>c</code> can be whatever... How do I do the same in <em>python</em>?</p>

<p><code>input()</code> and <code>raw_input()</code>, the way I'm using them, don't seem to be giving me the desired results.</p>

You generally shouldn't use
```
input()
```
in production code. If you want an
```
int
```
and then a
```
float
```
, try this:
```
```
>>> line = raw_input().split()
>>> a = int(line[0])
>>> b = float(line[1])
>>> c = " ".join(line[2:])
```
```
It all depends on what exactly you're trying to accomplish, but remember that readability counts. Obscure one-liners may seem cool but in the face of maintainability, try to choose something sensible :)
(P.S.: Don't forget to check for errors with
```
try: ... except (ValueError, IndexError):
```
)