import mathdef scORe(n): return 2**math.ceil( math.log2(n) ) - 1 print( scORe(123) )
Standard input is empty
127
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!