Python Interview Questions
Python Interview Questions
What is Python ?
Python is object oriented high level programming language and it is open source.
Give some features of python
- Simple and easy
- Platform independent
- Object oriented language
- Open source
- Interpreter based
Is python a case sensitive language ?
Yes, python is case sensitive programming language.
Why use python ?
The main benefits of use pythons are; it is simple and easy, platform independent, portable, extensible, build-in data structure and it is an open source.
What is PEP 8?
PEP 8 is a coding convention, a set of recommendation, about how to write your Python code more readable.
How Python is interpreted ?
Python language is an interpreted language. First python code is conveted into intermediate language which is again translated into machine language that has to be executed.
Python is object oriented programming language ?
Yes, It is object oriented programming language.
What are Python's dictionaries ?
Python's dictionaries are kind of hash table type. They work like associative arrays or hashes found in Perl and consist of key-value pairs.
How can you get a random number in python ?
Use random()
How will you get the length of the string ?
Use len(string) method to return length of string.