Python اسئلة واجوبة المقابلات
فروقات ذات صلة
سؤال 61. Define the term lambda.
Lambda is the small anonymous function in Python that is often used as an inline function.
سؤال 62. When would you use triple quotes as a delimiter?
Triple quotes ‘’” or ‘“ are string delimiters that can span multiple lines in Python. Triple quotes are usually used when spanning multiple lines, or enclosing a string that has a mix of single and double quotes contained therein.
سؤال 63. What is _init_?
The _init_ is a special type of method in Python that is called automatically when the memory is allocated for a new object. The main role of _init_ is to initialize the values of instance members for objects.
سؤال 64. Define generators in Python?
The way of implementing an effective representation of iterators is known as generators. It is only the normal function that yields expression in the function.
سؤال 65. Define docstring in Python?
The docstring in Python is also called a documentation string, it provides a way to document the Python classes, functions, and modules.
الاكثر فائدة حسب تقييم المستخدمين:
- What is Python?
- How do I share global variables across modules?
- How do you set a global variable in a function in Python?
- What type of language is Python? Programming or Scripting?
- Why can't I use an assignment in an expression?