Guest User

Untitled

a guest
May 25th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. def count_n(n_list):
  2. counts = []
  3. for n in n_list:
  4. count = 0
  5. while n % 2 == 0:
  6. count += 1
  7. n = n / 2
  8. else:
  9. counts.append(count)
  10. aws = min(counts)
  11. print(aws)
  12.  
  13. count_n([16,16,4])
Add Comment
Please, Sign In to add comment