Posts

Showing posts from January, 2021

Python Language Part-2

 Flow Control Boolean Values:-  While the integer, floating-point, and string data types have an unlimited number of possible values, the Boolean data type has only two values: True and False. (Boolean is capitalized because the data type is named after mathematician George Boole.) When typed as Python code, the Boolean values True and False lack the quotes you place around strings, and they always start with a capital T or F, with the rest of the word in lowercase. Enter the following into the interactive shell. (Some of these instructions are intentionally incorrect, and they’ll cause error messages to appear). >>> spam = True  >>> spam  True  >>> true  Traceback (most recent call last):  File " ", line 1, in true   NameError: name 'true' is not defined w  >>> True = 2 + 2  SyntaxError: assignment to keyword Comparison Operators  Comparison operators compare two values and evaluate down to a single Boolean value.  ==  Equal to  !=

Python Language Part-1

Image
 What is Python? Python refers to the Python programming language (with syntax rules for writing what is considered valid Python code) and the Python interpreter software that reads source code (written in the Python language) and performs its instructions. The Python interpreter is free to download from http://python.org/, and there are versions for Linux, OS X, and Windows. The name Python comes from the surreal British comedy group Monty Python, not from the snake. Python programmers are affectionately called Pythonistas, and both Monty Python and serpentine references usually pepper Python tutorials and documentation. The Python programming language has a wide range of syntactical constructions, standard library functions, and interactive development environment features. Fortunately, you can ignore most of that; you just need to learn enough to write some handy little programs. What is SHELL? Shell is one of the core part in our system, which is very helpful because it acts a