Ad
Fundamentals
Code
Diff
  • numberprint = lambda n: int(''.join(str(x) for x in (list(range(1, n+1)) + list(range(n-1, 0, -1)))))
    • numberprint=lambda x:int(''.join(map(str,list(range(1,x+1))+list(range(x-1,0,-1)))))
    • numberprint = lambda n: int(''.join(str(x) for x in (list(range(1, n+1)) + list(range(n-1, 0, -1)))))
Code
Diff
  • convert_binary_decimal = lambda x: int(str(x),2)
    • def convert_binary_decimal(number):
    • return int(str(number), 2)
    • convert_binary_decimal = lambda x: int(str(x),2)