jQuery – Responding to User Interactions
There are many user actions (events) that a web page can respond to using jQuery. Things such as a mouse click, key press, form submit, or scroll.
There are many user actions (events) that a web page can respond to using jQuery. Things such as a mouse click, key press, form submit, or scroll.
jQuery can be used to hide, show, fade in/out, or slide up/down HTML elements on the page, creating effects and animations with a great deal of control.
Callback functions are used to run several lines of code containing effects that need to finish running individually before running the next line of code.
AJAX is the ability to exchange data with a server, and then update parts of a web page without reloading the entire page – only the updated data reloads.
Python is a popular programming language created by Guido van Rossum, and released in 1991.
Comments can be used to explain Python code, make the code more readable, or prevent execution when testing code since they are ignored when running.
Variables are containers for storing data values. Python has no command for declaring a variable, instead creating it when you first assign a value to it.
Variables can have a short names (like x and y) or a longer, more descriptive name (like age, firstname, phone_number).
Python allows you to assign values to multiple variables in one line or the same value to multiple variables in one line.
The Python print() function can be used to output the value of variables.
Python Global variables can be used both inside and outside of functions. While a variable created inside a function can only be used inside the function.
Python has various built-in data types to allow for variables to store different types of data that can do different things.
There are three numeric types in Python: int, float, and complex. Variables of numeric types are created when assigned a value.
In Python, strings are surrounded by either single quotation marks, or double quotation marks. “Hello World” is the same as ‘Hello World’.
A range of characters can be returned from a string by using the slice syntax.
To concatenate, or combine, two strings in Python, the + operator is used.
To insert characters that will cause problems in a string, an escape character (backslash \ followed by the character you want to insert) is used.
To format a string, F-String is used by putting an f in front of the string literal and adding curly brackets {} as placeholders for variables/operations.
Booleans represent one of two values: True or False. In Python you can evaluate any expression to determine whether it is True or False.