Slip and slide


#1

This confused me with the underscores for a bit but i figured it out. hope this helps
def flip_bit(number, n):
mask=0b1< result=number^mask
return bin(result)
print flip_bit(30,3)


#2

@lumpyimp,

Please re-edit your Post

  • leave one blank-line above of your code
  • select your code in the Post
  • then =click= on the </>-symbol-of-this-editor

Your code will then be in a pre-code state
and you will be able to make/present the proper indentations.

or even better use
= http://discuss.codecademy.com/t/using-backticks-to-format-your-code/3697/2
[extra's]
https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet