what do you mean by constant in python? and give example.
Answers
Answer:
Explanation:
1) A simple language which is easier to learn Python has a very simple and elegant syntax. It's much easier
to read and write Python programs compared to other languages like: C++, Java, C#.
2. Versatile Python supports development of a wide range of applications ranging from simple text
processing to WWW browser to games.
3. Free and open-source Python is an open source software. Therefore, anyone can freely distribute it,
read the source code, edit it, and even use the code to write new programs.4. Portability You can move Python programs from one platform to another, and run it without any
changes. It runs seamlessly on almost all platforms including Windows, Mac OS X and Linux.
5. Extensible and Embeddable Suppose an application requires high performance. You can easily combine
pieces of C/C++ or other languages with Python code. This will give your application high performance as
well as scripting capabilities which other languages may not provide out of the box.
6. A high-level, interpreted language Unlike C/C++, you don't have to worry about difficult tasks like
memory management, garbage collection and so on. Likewise, when you run Python code, it automatically
converts your code to the language your computer understands. You don't need to worry about any lower-
level operations.
7. Large standard libraries to solve common tasks Python has a number of standard libraries which makes
life of a programmer much easier since you don't have to write all the code yourself.
8. Object-oriented Everything in Python is an object. Object oriented programming (OOP) helps you solve
a complex problem very easily With OOP, you are able to divide these complex problems into smaller sets
by creating objects.