Filter interviews by
Python program to print max and min values in a dictionary
Use the max() and min() functions to find the maximum and minimum values in the dictionary
Pass the dictionary values as arguments to the functions
Print the results
Python program to count the number of words in a file.
Open the file using 'with open(file_path, 'r') as file:'
Read the contents of the file using 'file.read()'
Split the contents into words using 'split()'
Count the number of words using 'len()'
Use the 5 and 3lt mugs to measure 4lt.
Fill the 5lt mug completely
Pour 3lt from the 5lt mug into the 3lt mug
Empty the 3lt mug
Pour the remaining 2lt from the 5lt mug into the 3lt mug
Fill the 5lt mug again and pour 1lt into the 3lt mug until it's full
Now the 5lt mug has 4lt of water
super keyword is used to call a method from a parent class in Python inheritance.
super() returns a temporary object of the superclass, which allows you to call its methods.
It is used to avoid hard-coding the superclass name in the code.
super() can also be used to call methods with arguments.
Example: super().__init__() calls the constructor of the parent class.
SAN is a block-level storage while NAS is a file-level storage.
SAN is a dedicated network for storage devices while NAS uses existing network infrastructure.
SAN provides faster access to data and is more suitable for high-performance applications.
NAS is easier to manage and is more suitable for file sharing and backup.
SAN requires specialized hardware and software while NAS can be implemented using standard hardware an...
Top trending discussions
Software Engineer III
1.7k
salaries
| ₹14 L/yr - ₹47 L/yr |
Senior Software Engineer
1.2k
salaries
| ₹23 L/yr - ₹70 L/yr |
Software Engineer
770
salaries
| ₹12 L/yr - ₹40 L/yr |
Software Development Engineer 3
251
salaries
| ₹15.6 L/yr - ₹46 L/yr |
Assistant Team Leader
236
salaries
| ₹1.3 L/yr - ₹5 L/yr |
Amazon
Flipkart
Microsoft Corporation