How can I turn result into a variable
def square(number): return number * number
Steven Parker202,065 Points
As Abdi suggested, creating a variable is just a matter of making an assignment using the function as the source.
And for Abdi (or anyone not already aware), when posting code, use the instructions for code formatting in the Markdown Cheatsheet pop-up below the "Add an Answer" area. Or watch this video on code formatting.