Ch 12 Python

12.6 Rule LGI

When Python encounters a variable, it will handle the resolution of its name with specific priorities: first it will check if the variable is local, and if it does not exist locally, it will check if it is comprehensive and finally if is not comprehensive, it will test whether it is internal (eg len () […]

Ch 12 Python

12.1 Principle

Programming , functions are useful to perform the same operation several times in a program. They also allow more readable and clearer code by splitting it into logical blocks. You already know some Python functions such math.cos (angle) of the math module returns the cosine of the angle variable expressed in radians . You also […]