
Python Functions - W3Schools
A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. A function can return data as a result.
Python If Statement - W3Schools
Python Conditions and If statements Python supports the usual logical conditions from mathematics: Equals: a == b Not Equals: a != b Less than: a < b Less than or equal to: a <= b …
Python Random Module - W3Schools
Python has a built-in module that you can use to make random numbers. The random module has a set of methods:
Python sum () Function - W3Schools
Definition and Usage The sum() function returns a number, the sum of all items in an iterable.
Python Try Except - W3Schools
When an error occurs, or exception as we call it, Python will normally stop and generate an error message. These exceptions can be handled using the try statement:
Python Classes - W3Schools
All classes have a function called __init__(), which is always executed when the class is being initiated. Use the __init__() function to assign values to object properties, or other operations …
Python Inheritance - W3Schools
By using the super() function, you do not have to use the name of the parent element, it will automatically inherit the methods and properties from its parent.
Python RegEx - W3Schools
The search () Function The search() function searches the string for a match, and returns a Match object if there is a match. If there is more than one match, only the first occurrence of the …
Python Built-in Functions - W3Schools
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, …
Python Function Arguments - W3Schools
From a function's perspective: A parameter is the variable listed inside the parentheses in the function definition. An argument is the value that are sent to the function when it is called.