title: how to convert decimal to binary by using repeated division in python
body: <p>how to convert decimal to binary by using repeated division in python? </p>
  
  <p>i know i have to use a while loop, and use modulus sign  and others {%} and {//} to do this...but i need some kind of example for me to understand  how its done so i can understand completely. 
  CORRECT ME, if I'm wrong: </p>
  
  <pre><code>number = int(input("Enter a numberto convert into binary: "))
  
  result = "" 
  while number != 0:
      remainder = number % 2 # gives the exact remainder
      times = number // 2
      result = str(remainder) + result
      print("The binary representation is", result)
      break
  </code></pre>
  
  <p>Thank You</p>