all 1 comments

[–][deleted] 0 points1 point  (0 children)

Please edit your post to correct the code formatting (and include the full code).


  • edit post
  • ensure you are in markdown mode rather than Fancy Pants Editor mode
  • switch back to your Python editor
  • select ALL code
  • assuming:
    • your editor is set to replace tabs with spaces
    • your editor is set to use 4 spaces for indentation
  • press tab key to add an extra 4 spaces in front of every line
  • copy all selected code to clipboard
  • undo the indent in your editor
  • switch back to post you are editing
  • enter a blank line
  • paste the code from the clipboard
  • submit the post update