I solved the problem in Project Euler, but it took about 4 minutes to start, which is higher than the recommended time, so I looked at various solutions on the forum. One of them included a symbol <<in the list comprehension. Here is how it looked
blist.extend([(i << 1) + 3 for i in range(num) if alist.get(i)])
I can not find what exactly this symbol does <<. Can anybody help me?
source
share