Why the conditional operator is not giving the expected result (in Python)?
<p>For the given Python code, can anyone help me to find why I am not getting my expected result?</p>

<pre><code>i=1
j="Hello"
k="World"
while i&lt;101:
    if i%15==0: # thanks for answers, this is an extra if which I forgot to remove
        print j+k if i%15==0 else j if i%3==0 else k if i%5==0 else i
    i+=1
</code></pre>

<p>My expectation:</p>

<pre><code>1
2
Hello
4
World
Hello
7
.
14
HelloWorld
.
.
</code></pre>

<p>But the result is:</p>

<pre><code>HelloWorld
HelloWorld
HelloWorld
HelloWorld
HelloWorld
</code></pre>
