Let’s check out some exercises that will help understand “Defining Functions” better.
Define a function named f_1 which will print "Hello World!"
Now define the same function f_1 and assign it to variable ans_1. See what happens.
Now define the same f_1 function this time so that it returns a value instead of just printing it..