In ruby programming Destructive methods are used to change the object value permanently by itself using bang (!) operator. The exclamation
Author: Gyantoday
How to get ruby class of an object?
In Ruby programming method ‘class’ is used to get ruby class of an object. Method ‘class’ is used to tells
What is difference between true, nil and false keywords in ruby?
true, nil and false are the keywords in Ruby. In which nil is a special keyword reserved to indicate the absence of value
What is generator in python?
Generator in python is a function which returns an iterator. It looks like a normal function except that it contains yield statements
What is triple-quoted string in python?
Triple quoted string in python is a string which is bound by three instances of either a quotation mark (”)
What is universal newlines in python?
Universal newlines in python is a manner of interpreting text streams in which all of the following are recognized as
What __slots__ does?
–slot– is a declaration inside a class that saves memory by pre-declaring space for instance attributes and eliminating instance dictionaries.
What is ested scope in python?
ested scope in python is the ability to refer to a variable in an enclosing definition. For instance, a function
What is namespace?
Namespace is the place where a variable is stored. Namespaces are implemented as dictionaries. There are the local, global and
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
Great News for Indian IT professionals.. Linux Foundation Expands Access to Linux Training and Certification to Aspiring Professionals in India
India is the first region in which the Linux Foundation will offer country-specific pricing on select training and certification products
Linux Foundation to Bring Together Developers, IT Managers and Business Executives at Premier Linux and Open Source Conferences
LinuxCon, CloudOpen and Embedded Linux Conference Europe will gather experts on topics ranging from Containers and Internet of Things to