Skip to main content
10 events
when toggle format what by license comment
Nov 14, 2020 at 12:28 comment added naisuu42 oops, i thought the w+ mode was for when the file didn't exist yet. thanks for the help!
Nov 14, 2020 at 10:43 comment added Kelly Bundy @12rhombiingridwnocorners Why did you include the "+"?
Nov 14, 2020 at 1:35 comment added naisuu42 by the way, why it is bad practice to include the "+" when writing to a file?
Nov 13, 2020 at 21:46 history edited Kelly Bundy CC BY-SA 4.0
added alternative solution
Nov 13, 2020 at 16:40 comment added naisuu42 It defaults to 2 spaces per indent.
Nov 13, 2020 at 15:05 comment added Kelly Bundy Doesn't it at least always indent by the same amount? Which repl tool is it?
Nov 13, 2020 at 15:02 comment added naisuu42 Sorry, I was using the repl tool to write my code, it auto-indents it as such. Your solution is really clever, I had never even thought of that!
Nov 13, 2020 at 14:58 history edited Kelly Bundy CC BY-SA 4.0
added 213 characters in body
Nov 13, 2020 at 14:52 history edited Kelly Bundy CC BY-SA 4.0
added 213 characters in body
Nov 13, 2020 at 14:40 history answered Kelly Bundy CC BY-SA 4.0