Literals ( referred as constant- Values .) are data items that have fixed value. Python allows several kinds of literals: ( Click any of...
Thursday, July 2, 2020
Numeric Literals
Sayed Arsalan Zaheer
July 02, 2020
Numeric literals are numeric values and these can be one of the following types: 1. Integers(or ints) 2. Floating Point Literals 3. ...
None (Special Literal)
Sayed Arsalan Zaheer
July 02, 2020
The None literal is used to indicate absence of value. It is also used to indicate the end of lists in python. None in Python means ...
Complex Numbers
Sayed Arsalan Zaheer
July 02, 2020
A Complex number is a number of A+Bi where i is the imaginary number, equal to the square root of -1 i.e., √ -1 and A and B are ...
Boolean Literals
Sayed Arsalan Zaheer
July 02, 2020
A Boolean literal in python is use to represent one of the two Boolean values i.e., True or False . A Boolean literal can eithe...
Wednesday, July 1, 2020
Floating Point Literals
Sayed Arsalan Zaheer
July 01, 2020
Floating Point Literals are also called as real literals .-- Real literals are number having fractional parts. These may be written...
Integer Literals
Sayed Arsalan Zaheer
July 01, 2020
Integer literals are whole number without any fractional part. The method of writing integer constants has been specified in following ...