Re: [Tutor] custom comparator with ordered list

2017-06-26 Thread Anish Kumar
> anish singh wrote: > >> I need a custom comparator. >> >> dictionary = {a:[b,c], d:[e,f]} >> >> If both 'b' and 'e' belong to the same bin >> then it should be compared based on 'c' and 'f'. >> >> However, I want to also represent the result of the >> sorted operation in a ordered dictionary

Re: [Tutor] Extracting bits from an array

2016-04-29 Thread Anish Kumar
> >> Hello, >> >> I have an array that takes on the following form: >> >> x = [1000,1001,1011,] > > But these are actually integers in decimal representation. You could treat > them as binary, but I recommend that you use integers in binary > representation to avoid confusion: > x