what is python language

what is python language
java programming and c, c++, Matlab, Python, HTML, CSS programming language, and new techniques news and any history.
what is python language
Python is a generic, high-level programming language, an interactive, object-oriented, scripting language suitable for common tasks. This language has been designed in such a way that the code written in it can be easily read and understood.
what is python language


Unlike other programming languages, in which the middle brackets ({}) are used to represent code-blocks, white space is used to show code-blocks in Python. This programming language was created by Guido van Rossum in 1991. This is literally a programming script in which to compile the code to run the program, i.e. need not be pre-assembled. Python boasts "very clear remarkable power with syntax". And its standard library is large and comprehensive.
Features
 1-Easy to learn: As you will see, Python is very easy to learn.

2-Independent and open source: Python is an example of a floss (free/open source software).

3- High-level language:

4-Portable: Due to its open-source nature, Python is available on many platforms. You can use Python on Linux, Windows, Macintosh, Solaris, OS / 2, Amiga, AROS, / 400, BeOS, OS / 390, z / OS, Palm OS, QNX, VMS.


5-Interpreting languages: C or C ++ are compiled as they are, Python is not compiled in that way. This is an interpreted language.
Some features of the language
Some features of language









Typemutableवर्णनसिन्टैक्स का उदाहरणा
boolimmutableBoolean valueTrue
False
bytearraymutableSequence of bytesbytearray(b'Some ASCII')
bytearray(b"Some ASCII")
bytearray([119, 105, 107, 105])
bytesimmutableSequence of bytesb'Some ASCII'
b"Some ASCII"
bytes([119, 105, 107, 105])
compleximmutableComplex number with real and imaginary parts3+2.7j
dictmutableAssociative array (or dictionary) of key and value pairs; can contain mixed types (keys and values), keys must be a hashable type{'key1': 1.0, 3: False}
ellipsisAn ellipsis placeholder to be used as an index in NumPy arrays...
floatimmutableFloating point number, system-defined precision3.1415927
frozensetimmutableUnordered set, contains no duplicates; can contain mixed types, if hashablefrozenset([4.0, 'string', True])
intimmutableInteger of unlimited magnitude[11]42
listmutableList, can contain mixed types[4.0, 'string', True]
setmutableUnordered set, contains no duplicates; can contain mixed types, if hashable{4.0, 'string', True}
strimmutablecharacter string: sequence of Unicode codepoints'Wikipedia'
"Wikipedia"
"""Spanning
multiple
lines"""
tupleimmutableCan contain mixed types(4.0, 'string', True)
A small code of interactive mode Python
>>> 1 + 1
2
>>> a = range(10)
>>> print( list(a) )
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Comparison of Functional Functional Calculations in C and Python
int factorial(int x)
{
    if (x < 0 || x % 1 != 0) {
        printf("संख्या x, शून्य (0) के बराबर या उससे बड़ा पूर्णांक होना चाहिए।");
        return -1; //Error    
    }
    if (x == 0) {
        return 1;
    }
    return x * factorial(x - 1);
}
or
def factorial(x):
    assert x >= 0 and x % 1 == 0, "संख्या x, शून्य (0) के बराबर या उससे बड़ा पूर्णांक होना चाहिए।"
    if x == 0:
        return 1
    else:
        return x * factorial(x - 1)






































Comments