Followers

Saturday, December 7, 2019

BOOLEAN and STRING LITERALS

Boolean Literals 

A Boolean Literal in Python is used to represent one of the two Boolean values i.e., True (Boolean true) or False (Boolean False). A Boolean literal can neither have value as True or as False. 
This was all about Boolean Literal, yes this was a little short as this is the only information That we need for Class 11 Standard.


String Literals 

Python has one special literal, which is NONE. The NONE literals is used to indicate absence of value. It is also used to indicate the end of list in Python.
The None value in Python means ''There is no useful information'' or "There's nothing here". Python doesn't display anything when asked to display the value of a variable containing value as None. Printing with print statement,on the other hand, shows that the variable contains None. 

Python supports literal collections also such as tuples and lists etc. But covering these here would make the discussion too complex for the beginning. So, we'll take them at a later time. 


So with this we are end with this Post. This was a very small post as both of the topic was very small. And don't forget to follow me, that will give you notifications of my new updates.
JAI HIND!!! 
VANDE MATARAM!!!!!      

No comments:

Post a Comment

If you have any doubts, please do let me Know.