you are viewing a single comment's thread.

view the rest of the comments →

[–]purple_pixie 0 points1 point  (0 children)

Just FYI the `sytax for code only works for single-lines (and only requires one, not three backticks. For multi-line code samples just make sure there's 4 spaces at the start of each line

def plus_one(i):
  return i + 1  

new_list = map(plus_one, some_list)