<p><pre><code>    x = 3
    print(x)
    x = &quot;hello&quot;
    print(x)
</code></pre>
Not possible with static typing and type inference (which is static typing without annotation) but done all the time with dynamic typing. (Though still not a good idea, in my mind, but to each their own.)