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.
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
A small code of interactive mode Python
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.
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
Type | mutable | वर्णन | सिन्टैक्स का उदाहरणा |
---|---|---|---|
bool | immutable | Boolean value | True False |
bytearray | mutable | Sequence of bytes | bytearray(b'Some ASCII') bytearray(b"Some ASCII") bytearray([119, 105, 107, 105]) |
bytes | immutable | Sequence of bytes | b'Some ASCII' b"Some ASCII" bytes([119, 105, 107, 105]) |
complex | immutable | Complex number with real and imaginary parts | 3+2.7j |
dict | mutable | Associative 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} |
ellipsis | An ellipsis placeholder to be used as an index in NumPy arrays | ... | |
float | immutable | Floating point number, system-defined precision | 3.1415927 |
frozenset | immutable | Unordered set, contains no duplicates; can contain mixed types, if hashable | frozenset([4.0, 'string', True]) |
int | immutable | Integer of unlimited magnitude[11] | 42 |
list | mutable | List, can contain mixed types | [4.0, 'string', True] |
set | mutable | Unordered set, contains no duplicates; can contain mixed types, if hashable | {4.0, 'string', True} |
str | immutable | A character string: sequence of Unicode codepoints | 'Wikipedia' "Wikipedia" """Spanning |
tuple | immutable | Can contain mixed types | (4.0, 'string', True) |
>>> 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
Post a Comment