Keywords in Python
Python Keywords are reserved words that used in Python scripting. This means that you can't use these words as name of any entities like variables, classes and functions in Python programming. You can get the full list of keywords using python console help utility.
Python Variables and Data Types
In Python programming, a variable is a container for a value. It can be assigned a name and based on the value assigned to it, the Python interpreter decides its data type. Python is case sensitive, so, variable names are also case sensitive. Variables in Python follow the standard of an alphanumeric characters (A-z, 0-9) and beginning in a letter or underscore (A-z, _ ).
Every value in Python has a datatype. Python supports the following data types:
More on.... Python Variables and Data Types
Python Operators are special symbols that designate some sort of computation should be performed. Python includes operators in the following categories:
- Arithmetic Operators
- Assignment Operators
- Comparison Operators
- Logical Boolean Operators
- Bitwise Operators
- Membership Operators
- Identity operators
More on.... Python Operators
Python Datatype Conversion
Python defines type conversion functions to directly convert one data type to another which is useful for program development.
- int() : float, string to integer
- float() : integer, string to float
- str(): integer, float, List, Tuple to string
- list() : string, Tuple, Dictionary to List
- tuple() : string , list to tuple
More on... Python Datatype conversion
Python Mathematical Function
The Python math module offers you the ability to perform common and useful mathematical calculations within your program, this include addition (+), subtraction (-), division (/), and multiplication (*).
More on.... Python Mathematical Function