Python Interview Questions and Answers PDF
Python Interview Questions and Answers PDF
1)what is python?
Python is an interpreted, high-level programming language that emphasizes code readability and
maintainability. It has a large community of developers who are constantly creating tools and
libraries to make Python easier to use. Additionally, the language has several features that make
it well-suited for data analysis, machine learning, and scientific computing.
11)What are python modules? Name some commonly used built-in modules in Python?
Python modules are a way of grouping related code together, so that it can be easily found and
accessed. Some common built-in modules in Python include sys, os, math, collections, logging
and wheel.
17) How can you randomize the items of a list in place in Python?
def randomize(list):
for i in range(0, len(list) - 1):
list[i] = randint(-1, 1) return list