Dot Notation Question


I thought the dot notation only worked with strings?
How were we able to do math.sqrt(25) since 25 is a number and not a string?
Is it that math is a string that is the name of the module?
Or that sqrt() is a string that's the name of a function?


The dot notation is not only for strings.
math.sqrt(25) means we pass the value 25 to the 'function' sqrt of 'module' math and get a value returned.