title: Want to print consecutive 1's in
body: <pre><code>from array import *
  n=int(input("Enter the number"))
  m=bin(n)
  #print(m)
  a=array("u",[])
  a=int(m[2:])
  print(a)
  count=0
  for i in range(a):
      if(a[i]=="1" and a[i+1]=="1"):
          count=count+1
  print(count)
  </code></pre>
  
  <p>Here i want to print'ONLY' the number of consecutive 1's that appear in a binary number.</p>