Namespace is the place where a variable is stored. Namespaces are implemented as dictionaries. There are the local, global and
Category: Interview Question
What is mutable and immutable in python?
Mutable objects can change their value but keep their id(). Immutable is an object with a fixed value. Immutable objects include
What is named tuple in python?
Any tuple-like class whose indexable elements are also accessible using named attributes (for example, time.localtime() returns a tuple-like object where the year is accessible
What is metaclass in python?
Metaclass is the class of a class. Class definitions create a class name, a class dictionary, and a list of
What is list comprehension in Python?
List comprehension is a compact way to process all or part of the elements in a sequence and return a
What is lambda in Python?
lambda is an anonymous inline function consisting of a single expression which is evaluated when the function is called. The syntax to
What is Python 3000?
Python 3000 is nickname for the Python 3.x release line (coined long ago when the release of version 3 was
What this command tells to operating system ” #! /usr/bin/env python3 “ ?
This is not technically a part of the program. It is there to tell the operating system what version of
How Python is interpreted?
Python language is an interpreted language. The Python program runs directly from the source code. It converts the source code
What is Python interpreter?
The interpreter operates somewhat like the Unix shell: when called with standard input connected to a tty device, it reads
What is IDLE?
An Integrated Development Environment for Python. IDLE is a basic editor and interpreter environment which ships with the standard distribution
How to write comments in Python language?
Comments in Python start with the hash character, #, and extend to the end of the physical line. A comment may
What is the use of array in Ruby?
An Array is a sequential collection of items, where each item is placed at a unique index or we can
What is PEPs?
PEPs stands for Python Enhancement Proposals. It is a design document providing information to the Python community, or describing a