Tag: Python

Python

Monkey Patching in Python Explained with Coding Examples

[Simple Example Explained] What is monkey patching in Python? [Use-case] What is the use? Python code to change the behavior of Class and instance method.

Python

Python else after for/while loop explained with Example

[Explained with Examples] Python for else and while else statement. Else statement after the loop in Python.

Python

OSError: [WinError 10022] An invalid argument was supplied | Python Socket Error

[Error Solved] OSError: [WinError 10022] An invalid argument was supplied. Socket programming error in Python.

interview questions

Top 64 Python Interview Questions and Answers from Beginners to Advanced

List of top Python interview questions and answers. Python questions for developers, testers, automation engineers, data scientists…

Python

Name Mangling in Python with Example

What is name mangling in Python? Explain it with a simple example. How to use it with function overriding of base and derived class (inheritance)?

interview

PwC Written Test, Interview Questions and Answers for Python Developer

What is the PwC written test pattern for a coding round? PwC interview questions and answers for Python developer job profile.

coding challenge

[Coding Challenge] Special Elements in Matrix

[Solved] Competitive coding question- Special Elements in Matrix asked in Goldman Sachs coding round. Find distinct number of elements which are either minimum or maximum in row or column.

Python

[Step-by-step] Python Decorators Explained with Examples for Beginners

[Complete Tutorial] Python decorators explained with a basic example. Passing arguments and parameters to the Python decorators.

Python

Python AssertionError Exception and Assert Message | Example

What is Python assert keyword and its examples? How to solve assertionError in Python? How to add set Python assert message?