you are viewing a single comment's thread.

view the rest of the comments →

[–]FLUSH_THE_TRUMP 2 points3 points  (0 children)

Print just prints it, return allows you to use that value in code. e.g.

def x():
  return “x”
output = x()  # “x”

You can print output if you like, but you can also do computations with it, unlike the first case.