What is Python ?
It’s an interpreted, object-oriented, high-level programming language used to develop web applications, desktop applications, games and datascience and machine learning projects.
Who is the founder of python ?
a) Guido van Rossum
What is the latest version of python ?
a) The current latest python version is Python 3.7.0.
In which python programming language released ?
a) 1991
Is Python Supports for Web Programming ?
a) Yes with Django, Pyramid, Bottle, Tornado, Flask, web2py framework
Is Python Supports for GUI Programming ?
a) Yes with tkInter, PyGObject, PyQt, PySide, Kivy, wxPython libraries.
Is Python Supports for Data science and machine learning ?
a) Yes
What are datasciene and machine learning libraries in python ?
a) Numpy, SciPy, Pandas, IPython, Scikit learn libraries
What are deeplearning libraries in python?
Tensorflow, Keras, Pytorch etc
What PEP 8 : Coding Style in Python ?
PEP 8, sometimes spelled PEP8 or PEP-8, is a document that provides guidelines and best practices on how to write Python code. It was written in 2001 by Guido van Rossum, Barry Warsaw, and Nick Coghlan. The primary focus of PEP 8 is to improve the readability and consistency of Python code.
PEP stands for Python Enhancement Proposal, and there are several of them. A PEP is a document that describes new features proposed for Python and documents aspects of Python, like design and style, for the community.
How can you do debugging in python ?
We can do by using inbuilt module pdb. The module pdb defines an interactive source code debugger for Python programs.
What are the tools available in python to find bugs ?
You can use Pychecker to find bugs in program.
What are major differences between from python 2 and python 3?
Print Syntax, Libraries, etc. Fore more information refer
What are built in data types in python ?
- Integers
- Floating-Point
- Numbers
- Complex Numbers
- Strings
What is the maximum possible value for an integer in python ?
There is no definite value of integer in python 3. It depends on memory size.
Output:
What is global and local variables in python ?
Global variable – we can access anywhere in the program.
Local variable – we can access inside a function.
How to swap variable using python ?
Output:
What is difference between a += b is not always a = a + b in python ?
What is private variable in python ?
Refer this article for more information
What are membership operators in python ?
“in” and “not in” – Refer this article for more information
What is function in python?
How many types of functions in python ?
How to declare a function in python ?
What is the use of split function in python ?
you can use split() function to split the string by comma or space etc.
Here is the example:
How are arguments passed by value or by reference?
In python, Objects passed as arguments to functions are passed by reference; they are not being copied around. Thus, passing a large list as an argument does not involve copying all its members to a new location in memory. Note that even integers are objects. However, the distinction of by value and by reference present in some other programming languages often serves to distinguish whether the passed arguments can be actually changed by the called function and whether the calling function can see the changes. Passed objects of mutable types such as lists and dictionaries can be changed by the called function and the changes are visible to the calling function. Passed objects of immutable types such as integers and strings cannot be changed by the called function; the calling function can be certain that the called function will not change them
What Is A Function Call Or A Callable Object In Python?
A callable object is an object that can accept some arguments (also calledparameters) and possibly return an object (often a tuple containing multipleobjects). A function is the simplest callable object in Python, but there are others, such as classes or certain class instances.
What is the use of return keyword in python ?
A return statement ends the execution of the function call and “returns” the result, i.e. the value of the expression following the return keyword, to the caller. If the return statement is without an expression, the special value None is returned. If there is no return statement in the function code, the function ends, when the control flow reaches the end of the function body and the value “None” will be returned.
What is Break keyword in python ?
Break is used to terminate the current execution at next statement. It can be used in for and while loops
What is difference between break and continue in python ?
Break keyword breads the current execution but the ‘continue’ keyword used to ‘continue’ the execution with out break.
What is use of pass in python?
It is used to just pass the loop
What is enumerate() function in python ?
What is Class and Object ?
What Are Errors And Exceptions In Python Programs?
How can you handle errors in python ?
How can you handle exceptions in python ?
What is pickling and unpickling in python ?
What is namespace in python?
What is lambda in python ?
What is unitest in python ?
What is docstring in python ?
What is module and package in python ?
What is List In python ?
How to add values to list ?
How to update values from the list ?
How to remove values from the list ?
How to sort values in list ?
By using list.sort() function.
How to find the last 2 nd element from the list using python ?
How to convert list to another datatype using python ?
What is tuple in python ?
What is the difference between list and tuple ?
What is dictionary in python ?
How can you create a dictionary in python ?
What is set in python ?
What is fronenset in python ?
What is list comprehensive? What are benefits?
What are strings in python ?
How to find the length of the string using python ?
What is Index in python ?
How many types of comments in python ?
How memory management works in python?
How multi-thread works in python ?
Explain about inheritance in python ?
What are negative index ? How they are useful ?
No comments:
Post a Comment