I wrote a function that takes in a number and prints its square. When I used the print function and passed the function-with 2 as its input- as the print function's argument, the output was 4 and 'None'.
'None' I can understand, but why did Python execute the function and output 4 here? I had only used a print statement.