Ans: The built-in method which decides the types of the variable at the program runtime is known as type() in Python. When a single argument is passed through it, then it returns given object type. When 3 arguments pass through this, then it returns a new object type.

178.What are the key points of Python?

Ans:

  • Similar to PERL and PHP, Python is processed by the interpreter at runtime. Python supports Object-Oriented style of programming, which encapsulates code within objects.
  • Derived from other languages, such as ABC, C, C++, Modula-3, SmallTalk, Algol-68, Unix shell, and other scripting languages.
  • Python is copyrighted, and its source code is available under the GNU General Public License (GPL).
  • Supports the development of many applications, from text processing to games.
  • Works for scripting, embedded code and compiled the code.
  • Detailed