Filter interviews by
Be the first one to contribute and help others!
posted on 21 Feb 2023
A class is a blueprint for creating objects that have properties and methods. Functions are written inside a class to define its behavior.
A class is a user-defined data type that encapsulates data and functions that operate on that data.
Functions written inside a class are called methods and are used to define the behavior of the class.
The role of a class is to provide a template for creating objects that share common ...
Reverse a dictionary in Python
Create a new dictionary with values as keys and keys as values
Use dictionary comprehension to create the new dictionary
If there are duplicate values, use a list comprehension to create a list of keys
Use the built-in function 'reversed' to reverse the order of the keys or values
List and tuple are both data structures in Python used to store collections of items.
Lists are mutable and can be modified after creation.
Tuples are immutable and cannot be modified after creation.
Lists are defined using square brackets [], while tuples are defined using parentheses ().
Lists are typically used for collections of similar items, while tuples are used for collections of different items.
Lists have several ...
Slicing is a way to extract a portion of a sequence (string, list, tuple) in Python.
Slicing is done using the colon (:) operator.
The syntax for slicing is [start:stop:step].
start is the index where the slice starts (inclusive), stop is the index where the slice ends (exclusive), and step is the size of the jump between indices.
If start or stop is not specified, it defaults to the beginning or end of the sequence.
If ste...
Python is a high-level, interpreted programming language known for its simplicity and ease of use.
Dynamic typing and automatic memory management
Support for multiple programming paradigms such as procedural, object-oriented, and functional programming
Extensive standard library with modules for a wide range of tasks
Cross-platform compatibility
Easy to learn and read syntax
Large and active community with a wealth of resour...
Assistant Manager
3
salaries
| ₹9 L/yr - ₹10 L/yr |
Software Engineer Trainee
3
salaries
| ₹2.4 L/yr - ₹3.1 L/yr |
Assistant Manager Finance
3
salaries
| ₹8 L/yr - ₹9 L/yr |
Senior NOC Engineer
3
salaries
| ₹16 L/yr - ₹19 L/yr |
Team Lead
3
salaries
| ₹12.4 L/yr - ₹22 L/yr |
Freshworks
Happiest Minds Technologies
TCS
LTIMindtree