We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
This are one line for loops.
It basically returns a list of length of each element in number.
e.g. : numbers = [11,1,11,1111,11,1]
length = [2,1,2,4,2,1]
It short way to append in a list.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Day 10: Binary Numbers
You are viewing a single comment's thread. Return to all comments →
This are one line for loops. It basically returns a list of length of each element in number. e.g. : numbers = [11,1,11,1111,11,1] length = [2,1,2,4,2,1]
It short way to append in a list.