Beginner in Python, can't get this for loop to stop
<pre><code>Bit_128 = 0
Bit_64 = 0
Bit_32 = 0
Bit_64 = 0
Bit_32 = 0
Bit_16 = 0
Bit_8 = 0
Bit_4 = 0
Bit_2 = 0
Bit_1 = 0


Number = int(input("Enter number to be converted: "))

for power in range(7,0,-1):

if (2**power) &lt;= Number:
place_value = 2**power
if place_value == 128:
    Bit_128 = 1
elif place_value == 64:
    Bit_64 = 1
elif place_value == 32:
    Bit_32 = 1
elif place_value == 16:
    Bit_16 = 1
elif place_value == 8:
    Bit_8 = 1
elif place_value == 4:
    Bit_4 = 1
elif place_value == 2:
    Bit_2 = 1
elif place_value ==1:   
    Bit_1 = 1
Number = Number - (place_value)
if Number == 0:
       print ("Binary form of"),Number,("is"),Bit_128,Bit_64,Bit_32,Bit_16,Bit_8,Bit_4,Bit_2,Bit_1
</code></pre>

<p>I want this loop to move to the next 'power' value when it fails the first if condition, but when I run it in an interpreter, the program keeps on running despite the first condition not being true. I only want it to move on the next conditions if the first condition turns out to be true.
How can I do this? This is my first "big" program in python, and I'm having a hard time figuring this out. Any tips would be appreciated. Btw, the program is meant to convert any number from 1-255 to binary form. </p>

<p>Just using  "break" statement , to break the current loop when the condition is satisfied.</p>

python for-loop