Now, it's time to create your own function in the shell. Take the function my_sqrt() from the theory part as an example and change it as follows:
The function should return the result of
math.sqrt()when the input is an integer or a float.The function should return the string
"The string should be converted into a numeric data type"if the passed argument was a string.The function should return
Nonefor other inputs.
You can test this function in the shell until it works fine, then copy it into the field below, and we'll see if it is correct.
Note: Your function need to return the correct values, you shouldn't print anything.